#[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
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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>
This function deserializes the
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
Converts to this type from the input type.
Source§impl PartialEq for WireFormat
impl PartialEq for WireFormat
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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