pub struct AdmissionOrder { /* private fields */ }Expand description
Stable admission ordering key for one lifecycle candidate.
The phase is the canonical typed protocol phase rather than a free integer.
Binding-terminal transitions below additionally fix it to
CandidatePhase::BindingTerminal and derive the participant index from
the participant identifier, which is exactly that permanent index in v1.
Implementations§
Source§impl AdmissionOrder
impl AdmissionOrder
Sourcepub const fn new(
transaction_order: TransactionOrder,
candidate_phase: CandidatePhase,
participant_index: ParticipantIndex,
) -> Self
pub const fn new( transaction_order: TransactionOrder, candidate_phase: CandidatePhase, participant_index: ParticipantIndex, ) -> Self
Creates an order for a typed lifecycle candidate.
Sourcepub const fn binding_terminal(
transaction_order: TransactionOrder,
participant_id: ParticipantId,
) -> Self
pub const fn binding_terminal( transaction_order: TransactionOrder, participant_id: ParticipantId, ) -> Self
Creates the only order shape valid for a binding terminal.
Sourcepub const fn transaction_order(self) -> TransactionOrder
pub const fn transaction_order(self) -> TransactionOrder
Returns the conversation transaction-order major.
Sourcepub const fn candidate_phase(self) -> CandidatePhase
pub const fn candidate_phase(self) -> CandidatePhase
Returns the canonical candidate phase.
Sourcepub const fn participant_index(self) -> ParticipantIndex
pub const fn participant_index(self) -> ParticipantIndex
Returns the permanent participant-index tie-breaker.
Trait Implementations§
Source§impl Clone for AdmissionOrder
impl Clone for AdmissionOrder
Source§fn clone(&self) -> AdmissionOrder
fn clone(&self) -> AdmissionOrder
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 AdmissionOrder
Source§impl Debug for AdmissionOrder
impl Debug for AdmissionOrder
impl Eq for AdmissionOrder
Source§impl Ord for AdmissionOrder
impl Ord for AdmissionOrder
Source§fn cmp(&self, other: &AdmissionOrder) -> Ordering
fn cmp(&self, other: &AdmissionOrder) -> 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 AdmissionOrder
impl PartialEq for AdmissionOrder
Source§impl PartialOrd for AdmissionOrder
impl PartialOrd for AdmissionOrder
impl StructuralPartialEq for AdmissionOrder
Auto Trait Implementations§
impl Freeze for AdmissionOrder
impl RefUnwindSafe for AdmissionOrder
impl Send for AdmissionOrder
impl Sync for AdmissionOrder
impl Unpin for AdmissionOrder
impl UnsafeUnpin for AdmissionOrder
impl UnwindSafe for AdmissionOrder
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