Struct openmls::framing::MlsMessageOut
source · [−]pub struct MlsMessageOut { /* private fields */ }
Expand description
Unified message type for outgoing MLS messages.
Implementations
sourceimpl MlsMessageOut
impl MlsMessageOut
sourcepub fn wire_format(&self) -> WireFormat
pub fn wire_format(&self) -> WireFormat
Returns the wire format.
sourcepub fn epoch(&self) -> GroupEpoch
pub fn epoch(&self) -> GroupEpoch
Returns the epoch.
sourcepub fn content_type(&self) -> ContentType
pub fn content_type(&self) -> ContentType
Returns the content type.
sourcepub fn is_handshake_message(&self) -> bool
pub fn is_handshake_message(&self) -> bool
Returns true
if this is a handshake message and false
otherwise.
sourcepub fn try_from_bytes(bytes: &[u8]) -> Result<Self, MlsMessageError>
pub fn try_from_bytes(bytes: &[u8]) -> Result<Self, MlsMessageError>
Tries to deserialize from a byte slice. Returns MlsMessageError::UnableToDecode
on failure.
sourcepub fn to_bytes(&self) -> Result<Vec<u8>, MlsMessageError>
pub fn to_bytes(&self) -> Result<Vec<u8>, MlsMessageError>
Serializes the message to a byte vector. Returns MlsMessageError::LibraryError
on failure.
Trait Implementations
sourceimpl Clone for MlsMessageOut
impl Clone for MlsMessageOut
sourcefn clone(&self) -> MlsMessageOut
fn clone(&self) -> MlsMessageOut
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MlsMessageOut
impl Debug for MlsMessageOut
sourceimpl Deserialize for MlsMessageOut
impl Deserialize for MlsMessageOut
sourcefn 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 more
sourceimpl From<MlsMessageOut> for MlsMessageIn
impl From<MlsMessageOut> for MlsMessageIn
sourcefn from(message: MlsMessageOut) -> Self
fn from(message: MlsMessageOut) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MlsMessageOut> for MlsMessageOut
impl PartialEq<MlsMessageOut> for MlsMessageOut
sourcefn eq(&self, other: &MlsMessageOut) -> bool
fn eq(&self, other: &MlsMessageOut) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MlsMessageOut) -> bool
fn ne(&self, other: &MlsMessageOut) -> bool
This method tests for !=
.
sourceimpl Serialize for MlsMessageOut
impl Serialize for MlsMessageOut
sourceimpl Serialize for &MlsMessageOut
impl Serialize for &MlsMessageOut
sourceimpl Size for MlsMessageOut
impl Size for MlsMessageOut
fn tls_serialized_len(&self) -> usize
sourceimpl Size for &MlsMessageOut
impl Size for &MlsMessageOut
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for MlsMessageOut
Auto Trait Implementations
impl RefUnwindSafe for MlsMessageOut
impl Send for MlsMessageOut
impl Sync for MlsMessageOut
impl Unpin for MlsMessageOut
impl UnwindSafe for MlsMessageOut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more