Struct mls_rs::group::CommitOutput
source · #[non_exhaustive]pub struct CommitOutput {
pub commit_message: MlsMessage,
pub welcome_messages: Vec<MlsMessage>,
pub ratchet_tree: Option<Vec<u8>>,
}Expand description
Result of MLS commit operation using
Group::commit or
CommitBuilder::build.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit_message: MlsMessageCommit message to send to other group members.
welcome_messages: Vec<MlsMessage>Welcome messages to send to new group members. If the commit does not add members,
this list is empty. Otherwise, if MlsRules::commit_options returns single_welcome_message
set to true, then this list contains a single message sent to all members. Else, the list
contains one message for each added member. Recipients of each message can be identified using
MlsMessage::key_package_reference of their key packages and
MlsMessage::welcome_key_package_references.
ratchet_tree: Option<Vec<u8>>Ratchet tree that can be sent out of band if
ratchet_tree_extension is not used according to
MlsRules::encryption_options.
Implementations§
source§impl CommitOutput
impl CommitOutput
sourcepub fn commit_message(&self) -> &MlsMessage
pub fn commit_message(&self) -> &MlsMessage
Commit message to send to other group members.
sourcepub fn welcome_messages(&self) -> &[MlsMessage]
pub fn welcome_messages(&self) -> &[MlsMessage]
Welcome message to send to new group members.
sourcepub fn ratchet_tree(&self) -> Option<&[u8]>
pub fn ratchet_tree(&self) -> Option<&[u8]>
Ratchet tree that can be sent out of band if
ratchet_tree_extension is not used according to
MlsRules::encryption_options.
Trait Implementations§
source§impl Clone for CommitOutput
impl Clone for CommitOutput
source§fn clone(&self) -> CommitOutput
fn clone(&self) -> CommitOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more