Struct openmls::framing::PrivateMessage
source · pub struct PrivateMessage { /* 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 PrivateMessage
impl Clone for PrivateMessage
source§fn clone(&self) -> PrivateMessage
fn clone(&self) -> PrivateMessage
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 PrivateMessage
impl Debug for PrivateMessage
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 PartialEq<PrivateMessage> for PrivateMessage
impl PartialEq<PrivateMessage> for PrivateMessage
source§fn eq(&self, other: &PrivateMessage) -> bool
fn eq(&self, other: &PrivateMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for &PrivateMessage
impl Serialize for &PrivateMessage
source§impl Serialize for PrivateMessage
impl Serialize for PrivateMessage
source§impl Size for &PrivateMessage
impl Size for &PrivateMessage
fn tls_serialized_len(&self) -> usize
source§impl Size for PrivateMessage
impl Size for PrivateMessage
fn tls_serialized_len(&self) -> usize
impl Eq for PrivateMessage
impl StructuralEq for PrivateMessage
impl StructuralPartialEq for PrivateMessage
Auto Trait Implementations§
impl RefUnwindSafe for PrivateMessage
impl Send for PrivateMessage
impl Sync for PrivateMessage
impl Unpin for PrivateMessage
impl UnwindSafe for PrivateMessage
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