pub struct MlsMessageIn { /* private fields */ }Expand description
Before use with the MlsGroup API, the message has to be unpacked via
extract to yield its MlsMessageBodyIn.
// draft-ietf-mls-protocol-17
struct {
ProtocolVersion version = mls10;
// ... continued in [MlsMessageBody] ...
} MLSMessage;The -In suffix of this struct is to separate it from the MlsMessageOut
which is commonly returned by functions of the MlsGroup API.
Implementations§
Source§impl MlsMessageIn
impl MlsMessageIn
Sourcepub fn wire_format(&self) -> WireFormat
pub fn wire_format(&self) -> WireFormat
Returns the wire format.
Sourcepub fn extract(self) -> MlsMessageBodyIn
pub fn extract(self) -> MlsMessageBodyIn
Extract the content of an MlsMessageIn after deserialization for use
with the MlsGroup API.
Sourcepub fn try_into_protocol_message(
self,
) -> Result<ProtocolMessage, ProtocolMessageError>
pub fn try_into_protocol_message( self, ) -> Result<ProtocolMessage, ProtocolMessageError>
Try to convert the message into a ProtocolMessage.
Trait Implementations§
Source§impl Clone for MlsMessageIn
impl Clone for MlsMessageIn
Source§fn clone(&self) -> MlsMessageIn
fn clone(&self) -> MlsMessageIn
Returns a duplicate 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 MlsMessageIn
impl Debug for MlsMessageIn
Source§impl Deserialize for MlsMessageIn
impl Deserialize for MlsMessageIn
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 MlsMessageIn
impl DeserializeBytes for MlsMessageIn
Source§impl PartialEq for MlsMessageIn
impl PartialEq for MlsMessageIn
Source§impl Size for &MlsMessageIn
impl Size for &MlsMessageIn
fn tls_serialized_len(&self) -> usize
Source§impl Size for MlsMessageIn
impl Size for MlsMessageIn
fn tls_serialized_len(&self) -> usize
Source§impl TryFrom<MlsMessageIn> for ProtocolMessage
impl TryFrom<MlsMessageIn> for ProtocolMessage
Source§type Error = ProtocolMessageError
type Error = ProtocolMessageError
The type returned in the event of a conversion error.
impl StructuralPartialEq for MlsMessageIn
Auto Trait Implementations§
impl Freeze for MlsMessageIn
impl RefUnwindSafe for MlsMessageIn
impl Send for MlsMessageIn
impl Sync for MlsMessageIn
impl Unpin for MlsMessageIn
impl UnwindSafe for MlsMessageIn
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