Struct openmls::group::StagedCommit
source · pub struct StagedCommit { /* private fields */ }
Expand description
Contains the changes from a commit to the group state.
Implementations§
source§impl StagedCommit
impl StagedCommit
sourcepub fn add_proposals(&self) -> impl Iterator<Item = QueuedAddProposal<'_>>
pub fn add_proposals(&self) -> impl Iterator<Item = QueuedAddProposal<'_>>
Returns the Add proposals that are covered by the Commit message as in iterator over QueuedAddProposal.
sourcepub fn remove_proposals(&self) -> impl Iterator<Item = QueuedRemoveProposal<'_>>
pub fn remove_proposals(&self) -> impl Iterator<Item = QueuedRemoveProposal<'_>>
Returns the Remove proposals that are covered by the Commit message as in iterator over QueuedRemoveProposal.
sourcepub fn update_proposals(&self) -> impl Iterator<Item = QueuedUpdateProposal<'_>>
pub fn update_proposals(&self) -> impl Iterator<Item = QueuedUpdateProposal<'_>>
Returns the Update proposals that are covered by the Commit message as in iterator over QueuedUpdateProposal.
sourcepub fn psk_proposals(&self) -> impl Iterator<Item = QueuedPskProposal<'_>>
pub fn psk_proposals(&self) -> impl Iterator<Item = QueuedPskProposal<'_>>
Returns the PresharedKey proposals that are covered by the Commit message as in iterator over QueuedPskProposal.
sourcepub fn self_removed(&self) -> bool
pub fn self_removed(&self) -> bool
Returns true
if the member was removed through a proposal covered by this Commit message
and false
otherwise.
sourcepub fn group_context(&self) -> &GroupContext
pub fn group_context(&self) -> &GroupContext
Returns the GroupContext
of the staged commit state.
sourcepub fn epoch_authenticator(&self) -> Option<&EpochAuthenticator>
pub fn epoch_authenticator(&self) -> Option<&EpochAuthenticator>
Returns the EpochAuthenticator
of the staged commit state if the
owner of the originating group state is a member of the group. Returns
None
otherwise.