pub struct LeftOperation { /* private fields */ }Expand description
Durable facts of one permanent Leave, as recorded by the shell.
Implementations§
Source§impl LeftOperation
impl LeftOperation
Sourcepub fn new<EF, V, LF>(retired: &RetiredIdentity<EF, V, LF>) -> Self
pub fn new<EF, V, LF>(retired: &RetiredIdentity<EF, V, LF>) -> Self
Creates the leave event body from the permanent retirement tombstone.
RetiredIdentity carries both the canonical LeaveCommitted
result and the congruence-checked Left admission order, so the
recorded fact and its transaction order both come from a committed
leave (super::commit_leave or super::commit_pending_leave)
rather than from caller-chosen raw values. The one raw promotion path
into RetiredIdentity is validated whole-participant cold restore
(super::ParticipantLifecycleRestore::restore), which re-validates
every stored field against the stored result before minting the
tombstone.
A leave fact cannot be minted from wire-constructible raw values:
use liminal_protocol::lifecycle::LeftOperation;
use liminal_protocol::wire::LeaveCommitted;
fn fabricate(committed: LeaveCommitted) -> LeftOperation {
LeftOperation::new(committed, 17)
}Sourcepub const fn committed(&self) -> &LeaveCommitted
pub const fn committed(&self) -> &LeaveCommitted
Borrows the canonical permanent Leave result.
Sourcepub const fn left_transaction_order(&self) -> TransactionOrder
pub const fn left_transaction_order(&self) -> TransactionOrder
Returns the immutable transaction-order major of the Left record.
Trait Implementations§
Source§impl Clone for LeftOperation
impl Clone for LeftOperation
Source§fn clone(&self) -> LeftOperation
fn clone(&self) -> LeftOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more