pub enum CommittedBindingTerminal {
Detached(CommittedDetachedTerminal),
Died(CommittedDiedTerminal),
}Expand description
Cause-partitioned durable binding-terminal record.
The variant determines the allowed cause domain, so no independent record kind can disagree with the stored cause.
Variants§
Detached(CommittedDetachedTerminal)
An appended Detached terminal.
Died(CommittedDiedTerminal)
An appended Died terminal.
Implementations§
Source§impl CommittedBindingTerminal
impl CommittedBindingTerminal
Sourcepub const fn participant_id(self) -> ParticipantId
pub const fn participant_id(self) -> ParticipantId
Returns the permanent participant identifier/index.
Sourcepub const fn conversation_id(self) -> ConversationId
pub const fn conversation_id(self) -> ConversationId
Returns the owning conversation.
Sourcepub const fn binding_epoch(self) -> BindingEpoch
pub const fn binding_epoch(self) -> BindingEpoch
Returns the exact ended binding epoch.
Sourcepub const fn admission_order(self) -> AdmissionOrder
pub const fn admission_order(self) -> AdmissionOrder
Returns the typed binding-terminal admission position.
Sourcepub const fn delivery_seq(self) -> DeliverySeq
pub const fn delivery_seq(self) -> DeliverySeq
Returns the committed lifecycle delivery sequence.
Sourcepub const fn kind(self) -> BindingTerminalKind
pub const fn kind(self) -> BindingTerminalKind
Returns the record class derived from the cause-partitioned variant.
Sourcepub const fn close_cause(self) -> CloseCause
pub const fn close_cause(self) -> CloseCause
Returns the shared seven-class close-cause view.
Sourcepub const fn detached_cause(self) -> Option<DetachedCause>
pub const fn detached_cause(self) -> Option<DetachedCause>
Returns the restricted Detached cause, or None for a Died record.
Sourcepub const fn died_cause(self) -> Option<DiedCause>
pub const fn died_cause(self) -> Option<DiedCause>
Returns the restricted Died cause, or None for a Detached record.
Trait Implementations§
Source§impl Clone for CommittedBindingTerminal
impl Clone for CommittedBindingTerminal
Source§fn clone(&self) -> CommittedBindingTerminal
fn clone(&self) -> CommittedBindingTerminal
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 moreimpl Copy for CommittedBindingTerminal
Source§impl Debug for CommittedBindingTerminal
impl Debug for CommittedBindingTerminal
impl Eq for CommittedBindingTerminal
Source§impl From<CommittedDetachedTerminal> for CommittedBindingTerminal
impl From<CommittedDetachedTerminal> for CommittedBindingTerminal
Source§fn from(value: CommittedDetachedTerminal) -> Self
fn from(value: CommittedDetachedTerminal) -> Self
Converts to this type from the input type.
Source§impl From<CommittedDiedTerminal> for CommittedBindingTerminal
impl From<CommittedDiedTerminal> for CommittedBindingTerminal
Source§fn from(value: CommittedDiedTerminal) -> Self
fn from(value: CommittedDiedTerminal) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommittedBindingTerminal
impl PartialEq for CommittedBindingTerminal
impl StructuralPartialEq for CommittedBindingTerminal
Auto Trait Implementations§
impl Freeze for CommittedBindingTerminal
impl RefUnwindSafe for CommittedBindingTerminal
impl Send for CommittedBindingTerminal
impl Sync for CommittedBindingTerminal
impl Unpin for CommittedBindingTerminal
impl UnsafeUnpin for CommittedBindingTerminal
impl UnwindSafe for CommittedBindingTerminal
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