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.
Sourcepub const fn storage_description(self) -> CommittedBindingTerminalRestore
pub const fn storage_description(self) -> CommittedBindingTerminalRestore
Describes this terminal as the capsule that restores it.
The cause-partitioned variant is not stated: restore derives it from the cause, which is the whole point of the partition, so writing it would give one fact two homes and a way to disagree with itself.