pub struct OrderLedger { /* private fields */ }Expand description
Validated transaction-order high watermark and reserved claims.
Storage bindings may restore and inspect this factual snapshot, but cannot invoke the lower-level planner directly. Executable allocation is owned by the protocol’s total lifecycle operations.
ⓘ
use liminal_protocol::lifecycle::OrderLedger;
fn bypass_total_operation(ledger: OrderLedger) {
let _ = ledger.plan_ordinary_record();
}Implementations§
Source§impl OrderLedger
impl OrderLedger
Sourcepub fn try_new(
high: OrderHigh,
claims: OrderClaims,
) -> Result<Self, OrderLedgerInvariantError>
pub fn try_new( high: OrderHigh, claims: OrderClaims, ) -> Result<Self, OrderLedgerInvariantError>
Restores a ledger only when every unmaterialized claim owns a remaining value.
§Errors
Returns OrderLedgerInvariantError if claims exceed the exact suffix.
Sourcepub const fn claims(self) -> OrderClaims
pub const fn claims(self) -> OrderClaims
Returns the exact four-class claim state.
Trait Implementations§
Source§impl Clone for OrderLedger
impl Clone for OrderLedger
Source§fn clone(&self) -> OrderLedger
fn clone(&self) -> OrderLedger
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 OrderLedger
Source§impl Debug for OrderLedger
impl Debug for OrderLedger
impl Eq for OrderLedger
Source§impl PartialEq for OrderLedger
impl PartialEq for OrderLedger
impl StructuralPartialEq for OrderLedger
Auto Trait Implementations§
impl Freeze for OrderLedger
impl RefUnwindSafe for OrderLedger
impl Send for OrderLedger
impl Sync for OrderLedger
impl Unpin for OrderLedger
impl UnsafeUnpin for OrderLedger
impl UnwindSafe for OrderLedger
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