Enum openmls::framing::WireFormat
source · #[repr(u16)]pub enum WireFormat {
PublicMessage = 1,
PrivateMessage = 2,
Welcome = 3,
GroupInfo = 4,
KeyPackage = 5,
}
Expand description
Wire format of MLS messages.
// draft-ietf-mls-protocol-17 | Value | Name | Recommended | Reference | |—————–|–––––––––––––|———––|———–| | 0x0000 | RESERVED | N/A | RFC XXXX | | 0x0001 | mls_plaintext | Y | RFC XXXX | | 0x0002 | mls_ciphertext | Y | RFC XXXX | | 0x0003 | mls_welcome | Y | RFC XXXX | | 0x0004 | mls_group_info | Y | RFC XXXX | | 0x0005 | mls_key_package | Y | RFC XXXX | | 0xf000 - 0xffff | Reserved for Private Use | N/A | RFC XXXX |
Variants§
PublicMessage = 1
Plaintext message
PrivateMessage = 2
Encrypted message
Welcome = 3
Welcome message
GroupInfo = 4
Group information
KeyPackage = 5
KeyPackage
Trait Implementations§
source§impl Clone for WireFormat
impl Clone for WireFormat
source§fn clone(&self) -> WireFormat
fn clone(&self) -> WireFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WireFormat
impl Debug for WireFormat
source§impl<'de> Deserialize<'de> for WireFormat
impl<'de> Deserialize<'de> for WireFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Deserialize for WireFormat
impl Deserialize for WireFormat
source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
bytes
from the provided a std::io::Read
and returns the populated struct. Read moresource§impl DeserializeBytes for WireFormat
impl DeserializeBytes for WireFormat
source§impl From<OutgoingWireFormatPolicy> for WireFormat
impl From<OutgoingWireFormatPolicy> for WireFormat
source§fn from(outgoing: OutgoingWireFormatPolicy) -> Self
fn from(outgoing: OutgoingWireFormatPolicy) -> Self
source§impl PartialEq for WireFormat
impl PartialEq for WireFormat
source§fn eq(&self, other: &WireFormat) -> bool
fn eq(&self, other: &WireFormat) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for &WireFormat
impl Serialize for &WireFormat
source§impl Serialize for WireFormat
impl Serialize for WireFormat
source§impl Serialize for WireFormat
impl Serialize for WireFormat
source§impl Size for &WireFormat
impl Size for &WireFormat
fn tls_serialized_len(&self) -> usize
source§impl Size for WireFormat
impl Size for WireFormat
fn tls_serialized_len(&self) -> usize
impl Copy for WireFormat
impl Eq for WireFormat
impl StructuralPartialEq for WireFormat
Auto Trait Implementations§
impl Freeze for WireFormat
impl RefUnwindSafe for WireFormat
impl Send for WireFormat
impl Sync for WireFormat
impl Unpin for WireFormat
impl UnwindSafe for WireFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more