Struct mls_rs::group::StateUpdate
source · pub struct StateUpdate { /* private fields */ }
Expand description
Representation of changes made by a commit.
Implementations§
source§impl StateUpdate
impl StateUpdate
sourcepub fn roster_update(&self) -> &RosterUpdate
pub fn roster_update(&self) -> &RosterUpdate
Changes to the roster as a result of proposals.
sourcepub fn added_psks(&self) -> &[ExternalPskId]
pub fn added_psks(&self) -> &[ExternalPskId]
Pre-shared keys that have been added to the group.
sourcepub fn is_pending_reinit(&self) -> bool
pub fn is_pending_reinit(&self) -> bool
Flag to indicate if the group is now pending reinitialization due to
receiving a ReInit
proposal.
sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Flag to indicate the group is still active. This will be false if the member processing the commit has been removed from the group.
sourcepub fn custom_proposals(&self) -> &[ProposalInfo<CustomProposal>]
pub fn custom_proposals(&self) -> &[ProposalInfo<CustomProposal>]
Custom proposals that were committed to.
sourcepub fn unused_proposals(&self) -> &[ProposalInfo<Proposal>]
pub fn unused_proposals(&self) -> &[ProposalInfo<Proposal>]
Proposals that were received in the prior epoch but not committed to.
pub fn pending_reinit_ciphersuite(&self) -> Option<CipherSuite>
Trait Implementations§
source§impl Clone for StateUpdate
impl Clone for StateUpdate
source§fn clone(&self) -> StateUpdate
fn clone(&self) -> StateUpdate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StateUpdate
impl Debug for StateUpdate
source§impl PartialEq for StateUpdate
impl PartialEq for StateUpdate
source§fn eq(&self, other: &StateUpdate) -> bool
fn eq(&self, other: &StateUpdate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StateUpdate
Auto Trait Implementations§
impl Freeze for StateUpdate
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnwindSafe for StateUpdate
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)