Struct openmls::framing::MlsMessageIn
source · pub struct MlsMessageIn { /* private fields */ }
Expand description
Before use with the MlsGroup
API, the message has to be unpacked via
extract
to yield its MlsMessageInBody
.
// 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) -> MlsMessageInBody
pub fn extract(self) -> MlsMessageInBody
Extract the content of an MlsMessageIn
after deserialization for use
with the MlsGroup
API.
Trait Implementations§
source§impl Clone for MlsMessageIn
impl Clone for MlsMessageIn
source§fn clone(&self) -> MlsMessageIn
fn clone(&self) -> MlsMessageIn
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 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 PartialEq<MlsMessageIn> for MlsMessageIn
impl PartialEq<MlsMessageIn> for MlsMessageIn
source§fn eq(&self, other: &MlsMessageIn) -> bool
fn eq(&self, other: &MlsMessageIn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
impl StructuralPartialEq for MlsMessageIn
Auto Trait Implementations§
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