pub enum ProposalKind {
Commit = 0,
StewardElection = 1,
Emergency = 2,
}Expand description
Protocol role of a ConversationUpdateRequest. Ordinal order is RFC priority
(higher variant beats lower when both are in flight).
Variants§
Commit = 0
Membership change (invite / remove member). Lowest priority.
StewardElection = 1
Steward rotation. Between commit and emergency.
Emergency = 2
Emergency criteria — highest priority; partially freezes lower kinds.
Implementations§
Source§impl ProposalKind
impl ProposalKind
Sourcepub fn of(req: &ConversationUpdateRequest) -> Self
pub fn of(req: &ConversationUpdateRequest) -> Self
Classify a ConversationUpdateRequest. None / unknown payloads map to Self::Commit.
pub fn is_emergency(self) -> bool
pub fn is_steward_election(self) -> bool
Sourcepub fn is_mls_producing(self) -> bool
pub fn is_mls_producing(self) -> bool
True for kinds that produce an MLS proposal (invite / remove member). Emergency and election are consensus-only — they never land in an MLS commit.
Sourcepub fn is_governance(self) -> bool
pub fn is_governance(self) -> bool
True for emergency or steward-election kinds (non-commit governance).
Trait Implementations§
Source§impl Clone for ProposalKind
impl Clone for ProposalKind
Source§fn clone(&self) -> ProposalKind
fn clone(&self) -> ProposalKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProposalKind
impl Debug for ProposalKind
Source§impl Ord for ProposalKind
impl Ord for ProposalKind
Source§fn cmp(&self, other: &ProposalKind) -> Ordering
fn cmp(&self, other: &ProposalKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProposalKind
impl PartialEq for ProposalKind
Source§fn eq(&self, other: &ProposalKind) -> bool
fn eq(&self, other: &ProposalKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ProposalKind
impl PartialOrd for ProposalKind
impl Copy for ProposalKind
impl Eq for ProposalKind
impl StructuralPartialEq for ProposalKind
Auto Trait Implementations§
impl Freeze for ProposalKind
impl RefUnwindSafe for ProposalKind
impl Send for ProposalKind
impl Sync for ProposalKind
impl Unpin for ProposalKind
impl UnsafeUnpin for ProposalKind
impl UnwindSafe for ProposalKind
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§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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