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 queued_proposals(&self) -> impl Iterator<Item = &QueuedProposal>
pub fn queued_proposals(&self) -> impl Iterator<Item = &QueuedProposal>
Returns an iterator over all QueuedProposals.
Sourcepub fn update_path_leaf_node(&self) -> Option<&LeafNode>
pub fn update_path_leaf_node(&self) -> Option<&LeafNode>
Returns the leaf node of the (optional) update path.
Sourcepub fn credentials_to_verify(&self) -> impl Iterator<Item = &Credential>
pub fn credentials_to_verify(&self) -> impl Iterator<Item = &Credential>
Returns the credentials that the caller needs to verify are valid.
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.
Trait Implementations§
Source§impl Debug for StagedCommit
impl Debug for StagedCommit
Source§impl<'de> Deserialize<'de> for StagedCommit
impl<'de> Deserialize<'de> for StagedCommit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<PendingCommitState> for StagedCommit
impl From<PendingCommitState> for StagedCommit
Source§fn from(pcs: PendingCommitState) -> Self
fn from(pcs: PendingCommitState) -> Self
Auto Trait Implementations§
impl Freeze for StagedCommit
impl RefUnwindSafe for StagedCommit
impl Send for StagedCommit
impl Sync for StagedCommit
impl Unpin for StagedCommit
impl UnwindSafe for StagedCommit
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> 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