Enum openmls::framing::WireFormat
source · #[repr(u16)]pub enum WireFormat {
PublicMessage,
PrivateMessage,
Welcome,
GroupInfo,
KeyPackage,
}
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
Plaintext message
PrivateMessage
Encrypted message
Welcome
Welcome message
GroupInfo
Group information
KeyPackage
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 From<OutgoingWireFormatPolicy> for WireFormat
impl From<OutgoingWireFormatPolicy> for WireFormat
source§fn from(outgoing: OutgoingWireFormatPolicy) -> Self
fn from(outgoing: OutgoingWireFormatPolicy) -> Self
source§impl PartialEq<WireFormat> for WireFormat
impl PartialEq<WireFormat> 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 ==
.