Enum openmls::prelude::ProtocolMessage
source · pub enum ProtocolMessage {
PrivateMessage(PrivateMessageIn),
PublicMessage(PublicMessageIn),
}
Expand description
Enum containing a message for use with process_message
and an
MlsGroup
. Both PublicMessage
and PrivateMessage
implement
Into<ProtocolMessage>
.
Variants§
PrivateMessage(PrivateMessageIn)
A ProtocolMessage
containing a PrivateMessage
.
PublicMessage(PublicMessageIn)
A ProtocolMessage
containing a PublicMessage
.
Implementations§
source§impl ProtocolMessage
impl ProtocolMessage
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_external(&self) -> bool
pub fn is_external(&self) -> bool
Returns true
if this is either an external proposal or external commit
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.
Trait Implementations§
source§impl Clone for ProtocolMessage
impl Clone for ProtocolMessage
source§fn clone(&self) -> ProtocolMessage
fn clone(&self) -> ProtocolMessage
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 ProtocolMessage
impl Debug for ProtocolMessage
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 From<PublicMessageIn> for ProtocolMessage
impl From<PublicMessageIn> for ProtocolMessage
source§fn from(public_message: PublicMessageIn) -> Self
fn from(public_message: PublicMessageIn) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolMessage
impl Send for ProtocolMessage
impl Sync for ProtocolMessage
impl Unpin for ProtocolMessage
impl UnwindSafe for ProtocolMessage
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