pub struct LeaveCommitted { /* private fields */ }Expand description
Permanent terminal Leave result.
Implementations§
Source§impl LeaveCommitted
impl LeaveCommitted
Sourcepub const fn new(
conversation_id: ConversationId,
leave_attempt_token: LeaveAttemptToken,
participant_id: ParticipantId,
retired_generation: Generation,
ended_binding_epoch: Option<BindingEpoch>,
prior_terminal_delivery_seq: Option<DeliverySeq>,
left_delivery_seq: DeliverySeq,
) -> Option<Self>
pub const fn new( conversation_id: ConversationId, leave_attempt_token: LeaveAttemptToken, participant_id: ParticipantId, retired_generation: Generation, ended_binding_epoch: Option<BindingEpoch>, prior_terminal_delivery_seq: Option<DeliverySeq>, left_delivery_seq: DeliverySeq, ) -> Option<Self>
Constructs a terminal Leave outcome from its authoritative durable values.
Returns None when a supplied active binding carries another
generation or when a prior terminal is not strictly before Left.
Sourcepub const fn conversation_id(&self) -> ConversationId
pub const fn conversation_id(&self) -> ConversationId
Conversation from the request.
Sourcepub const fn leave_attempt_token(&self) -> LeaveAttemptToken
pub const fn leave_attempt_token(&self) -> LeaveAttemptToken
Committed Leave token.
Sourcepub const fn participant_id(&self) -> ParticipantId
pub const fn participant_id(&self) -> ParticipantId
Retired participant.
Sourcepub const fn presented_generation(&self) -> Generation
pub const fn presented_generation(&self) -> Generation
Presented generation, equal to the permanent retired generation.
Sourcepub const fn retired_generation(&self) -> Generation
pub const fn retired_generation(&self) -> Generation
Permanent retired generation.
Sourcepub const fn ended_binding_epoch(&self) -> Option<BindingEpoch>
pub const fn ended_binding_epoch(&self) -> Option<BindingEpoch>
Active binding ended by this same commit, if any.
Sourcepub const fn prior_terminal_delivery_seq(&self) -> Option<DeliverySeq>
pub const fn prior_terminal_delivery_seq(&self) -> Option<DeliverySeq>
Earlier binding-terminal record, if one exists.
Sourcepub const fn left_delivery_seq(&self) -> DeliverySeq
pub const fn left_delivery_seq(&self) -> DeliverySeq
Assigned Left delivery sequence.
Trait Implementations§
Source§impl Clone for LeaveCommitted
impl Clone for LeaveCommitted
Source§fn clone(&self) -> LeaveCommitted
fn clone(&self) -> LeaveCommitted
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 LeaveCommitted
impl Debug for LeaveCommitted
impl Eq for LeaveCommitted
Source§impl PartialEq for LeaveCommitted
impl PartialEq for LeaveCommitted
impl StructuralPartialEq for LeaveCommitted
Auto Trait Implementations§
impl Freeze for LeaveCommitted
impl RefUnwindSafe for LeaveCommitted
impl Send for LeaveCommitted
impl Sync for LeaveCommitted
impl Unpin for LeaveCommitted
impl UnsafeUnpin for LeaveCommitted
impl UnwindSafe for LeaveCommitted
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