pub struct StagedCommit {
pub staged_proposal_queue: ProposalQueue,
/* private fields */
}Expand description
Contains the changes from a commit to the group state.
Fields§
§staged_proposal_queue: ProposalQueueA queue containing the proposals associated with the commit.
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_app_ephemeral_proposals(
&self,
) -> impl Iterator<Item = QueuedAppEphemeralProposal<'_>>
Available on crate feature extensions-draft-08 only.
pub fn queued_app_ephemeral_proposals( &self, ) -> impl Iterator<Item = QueuedAppEphemeralProposal<'_>>
extensions-draft-08 only.Returns the AppEphemeral proposals that are covered by the Commit message as an iterator
over QueuedAppEphemeralProposal.
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 Clone for StagedCommit
impl Clone for StagedCommit
Source§fn clone(&self) -> StagedCommit
fn clone(&self) -> StagedCommit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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
Source§impl PartialEq for StagedCommit
impl PartialEq for StagedCommit
Source§impl Serialize for StagedCommit
impl Serialize for StagedCommit
impl StructuralPartialEq for StagedCommit
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> 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