pub struct PrivateMessageIn { /* private fields */ }
Expand description
PrivateMessage
is the framing struct for an encrypted PublicMessage
.
This message format is meant to be sent to and received from the Delivery
Service.
// draft-ietf-mls-protocol-17
struct {
opaque group_id<V>;
uint64 epoch;
ContentType content_type;
opaque authenticated_data<V>;
opaque encrypted_sender_data<V>;
opaque ciphertext<V>;
} PrivateMessage;
Trait Implementations§
Source§impl Clone for PrivateMessageIn
impl Clone for PrivateMessageIn
Source§fn clone(&self) -> PrivateMessageIn
fn clone(&self) -> PrivateMessageIn
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 PrivateMessageIn
impl Debug for PrivateMessageIn
Source§impl Deserialize for PrivateMessageIn
impl Deserialize for PrivateMessageIn
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 PrivateMessageIn
impl DeserializeBytes for PrivateMessageIn
Source§impl From<PrivateMessageIn> for ProtocolMessage
impl From<PrivateMessageIn> for ProtocolMessage
Source§fn from(private_message: PrivateMessageIn) -> Self
fn from(private_message: PrivateMessageIn) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrivateMessageIn
impl PartialEq for PrivateMessageIn
Source§impl Serialize for &PrivateMessageIn
impl Serialize for &PrivateMessageIn
Source§impl Serialize for PrivateMessageIn
impl Serialize for PrivateMessageIn
Source§impl Size for &PrivateMessageIn
impl Size for &PrivateMessageIn
fn tls_serialized_len(&self) -> usize
Source§impl Size for PrivateMessageIn
impl Size for PrivateMessageIn
fn tls_serialized_len(&self) -> usize
impl Eq for PrivateMessageIn
impl StructuralPartialEq for PrivateMessageIn
Auto Trait Implementations§
impl Freeze for PrivateMessageIn
impl RefUnwindSafe for PrivateMessageIn
impl Send for PrivateMessageIn
impl Sync for PrivateMessageIn
impl Unpin for PrivateMessageIn
impl UnwindSafe for PrivateMessageIn
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