pub struct MlsMessageOut { /* private fields */ }Expand description
An MlsMessageOut is typically returned from an MlsGroup function and
meant to be serialized and sent to the DS.
Implementations§
Source§impl MlsMessageOut
impl MlsMessageOut
Sourcepub fn from_welcome(welcome: Welcome, version: ProtocolVersion) -> Self
pub fn from_welcome(welcome: Welcome, version: ProtocolVersion) -> Self
Create an MlsMessageOut from a Welcome message and the currently
used ProtocolVersion.
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::UnableToEncode on failure.
Sourcepub fn body(&self) -> &MlsMessageBodyOut
pub fn body(&self) -> &MlsMessageBodyOut
Returns a reference to the contents of this MlsMessageOut.
Trait Implementations§
Source§impl Clone for MlsMessageOut
impl Clone for MlsMessageOut
Source§fn clone(&self) -> MlsMessageOut
fn clone(&self) -> MlsMessageOut
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 MlsMessageOut
impl Debug for MlsMessageOut
Source§impl From<GroupInfo> for MlsMessageOut
impl From<GroupInfo> for MlsMessageOut
Source§impl From<KeyPackage> for MlsMessageOut
impl From<KeyPackage> for MlsMessageOut
Source§fn from(key_package: KeyPackage) -> Self
fn from(key_package: KeyPackage) -> Self
Converts to this type from the input type.
Source§impl From<KeyPackageBundle> for MlsMessageOut
impl From<KeyPackageBundle> for MlsMessageOut
Source§fn from(key_package: KeyPackageBundle) -> Self
fn from(key_package: KeyPackageBundle) -> Self
Converts to this type from the input type.
Source§impl From<PrivateMessage> for MlsMessageOut
impl From<PrivateMessage> for MlsMessageOut
Source§fn from(private_message: PrivateMessage) -> Self
fn from(private_message: PrivateMessage) -> Self
Converts to this type from the input type.
Source§impl From<PublicMessage> for MlsMessageOut
impl From<PublicMessage> for MlsMessageOut
Source§fn from(public_message: PublicMessage) -> Self
fn from(public_message: PublicMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MlsMessageOut
impl PartialEq for MlsMessageOut
Source§impl Serialize for &MlsMessageOut
impl Serialize for &MlsMessageOut
Source§impl Serialize for MlsMessageOut
impl Serialize for MlsMessageOut
Source§impl Size for &MlsMessageOut
impl Size for &MlsMessageOut
fn tls_serialized_len(&self) -> usize
Source§impl Size for MlsMessageOut
impl Size for MlsMessageOut
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for MlsMessageOut
Auto Trait Implementations§
impl Freeze for MlsMessageOut
impl RefUnwindSafe for MlsMessageOut
impl Send for MlsMessageOut
impl Sync for MlsMessageOut
impl Unpin for MlsMessageOut
impl UnwindSafe for MlsMessageOut
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