pub struct CommitMessageBundle { /* private fields */ }
Expand description
Contains the messages that are produced by committing. The messages can be accessed individually
using getters or through the IntoIterator
interface.
Implementations§
Source§impl CommitMessageBundle
impl CommitMessageBundle
Sourcepub fn commit(&self) -> &MlsMessageOut
pub fn commit(&self) -> &MlsMessageOut
Gets a the Commit messsage. For owned version, see Self::into_commit
.
Sourcepub fn welcome(&self) -> Option<&Welcome>
pub fn welcome(&self) -> Option<&Welcome>
Gets a the Welcome messsage. Only Some
if new clients have been added in the commit.
For owned version, see Self::into_welcome
.
Sourcepub fn to_welcome_msg(&self) -> Option<MlsMessageOut>
pub fn to_welcome_msg(&self) -> Option<MlsMessageOut>
Gets a the Welcome messsage. Only Some
if new clients have been added in the commit.
Performs a copy of the Welcome. For owned version, see Self::into_welcome_msg
.
Sourcepub fn group_info(&self) -> Option<&GroupInfo>
pub fn group_info(&self) -> Option<&GroupInfo>
Gets a the GroupInfo message. Only Some
if new clients have been added or the group
configuration has use_ratchet_tree_extension
set.
For owned version, see Self::into_group_info
.
Sourcepub fn contents(&self) -> (&MlsMessageOut, Option<&Welcome>, Option<&GroupInfo>)
pub fn contents(&self) -> (&MlsMessageOut, Option<&Welcome>, Option<&GroupInfo>)
Gets all three messages, some of which optional. For owned version, see
Self::into_contents
.
Sourcepub fn into_commit(self) -> MlsMessageOut
pub fn into_commit(self) -> MlsMessageOut
Gets a the Commit messsage. This method consumes the CommitMessageBundle
. For a borrowed
version see Self::commit
.
Sourcepub fn into_welcome(self) -> Option<Welcome>
pub fn into_welcome(self) -> Option<Welcome>
Gets a the Welcome messsage. Only Some
if new clients have been added in the commit.
This method consumes the CommitMessageBundle
. For a borrowed version see
Self::welcome
.
Sourcepub fn into_welcome_msg(self) -> Option<MlsMessageOut>
pub fn into_welcome_msg(self) -> Option<MlsMessageOut>
Gets a the Welcome messsage. Only Some
if new clients have been added in the commit.
For a borrowed version, see Self::to_welcome_msg
.
Sourcepub fn into_group_info(self) -> Option<GroupInfo>
pub fn into_group_info(self) -> Option<GroupInfo>
Gets a the GroupInfo message. Only Some
if new clients have been added or the group
configuration has use_ratchet_tree_extension
set.
This method consumes the CommitMessageBundle
. For a borrowed version see
Self::group_info
.
Sourcepub fn into_group_info_msg(self) -> Option<MlsMessageOut>
pub fn into_group_info_msg(self) -> Option<MlsMessageOut>
Gets a the GroupInfo messsage. Only Some
if new clients have been added in the commit.
Sourcepub fn into_contents(
self,
) -> (MlsMessageOut, Option<Welcome>, Option<GroupInfo>)
pub fn into_contents( self, ) -> (MlsMessageOut, Option<Welcome>, Option<GroupInfo>)
Gets all three messages, some of which optional. This method consumes the
CommitMessageBundle
. For a borrowed version see Self::contents
.
Sourcepub fn into_messages(
self,
) -> (MlsMessageOut, Option<MlsMessageOut>, Option<MlsMessageOut>)
pub fn into_messages( self, ) -> (MlsMessageOut, Option<MlsMessageOut>, Option<MlsMessageOut>)
Gets all three messages, some of which optional, as MlsMessageOut
.
This method consumes the CommitMessageBundle
.
Trait Implementations§
Source§impl Clone for CommitMessageBundle
impl Clone for CommitMessageBundle
Source§fn clone(&self) -> CommitMessageBundle
fn clone(&self) -> CommitMessageBundle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommitMessageBundle
impl Debug for CommitMessageBundle
Source§impl IntoIterator for CommitMessageBundle
impl IntoIterator for CommitMessageBundle
Source§type Item = MlsMessageOut
type Item = MlsMessageOut
Source§type IntoIter = Chain<Chain<IntoIter<MlsMessageOut>, IntoIter<MlsMessageOut>>, IntoIter<MlsMessageOut>>
type IntoIter = Chain<Chain<IntoIter<MlsMessageOut>, IntoIter<MlsMessageOut>>, IntoIter<MlsMessageOut>>
Auto Trait Implementations§
impl Freeze for CommitMessageBundle
impl RefUnwindSafe for CommitMessageBundle
impl Send for CommitMessageBundle
impl Sync for CommitMessageBundle
impl Unpin for CommitMessageBundle
impl UnwindSafe for CommitMessageBundle
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
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>
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>
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