pub struct ConversationOrderExhausted { /* private fields */ }Expand description
Exhausted conversation transaction order.
Implementations§
Source§impl ConversationOrderExhausted
impl ConversationOrderExhausted
Sourcepub const REQUIRED_MAJORS: u64 = 1
pub const REQUIRED_MAJORS: u64 = 1
Exact required-major count serialized by protocol v1.
Sourcepub const fn new(
request: OrderAllocatingEnvelope,
high: u64,
order_remaining: u128,
reserved_claims: u128,
resulting_order_remaining: u128,
resulting_reserved_claims: u128,
) -> Self
pub const fn new( request: OrderAllocatingEnvelope, high: u64, order_remaining: u128, reserved_claims: u128, resulting_order_remaining: u128, resulting_reserved_claims: u128, ) -> Self
Constructs the canonical order-exhaustion snapshot.
The counter and checked next value are derived rather than accepted from
the caller, making next_value = Some(high + 1) (or None exactly at
u64::MAX) structural.
Sourcepub const fn request(&self) -> &OrderAllocatingEnvelope
pub const fn request(&self) -> &OrderAllocatingEnvelope
Exact triggering request envelope.
Sourcepub const fn next_value(&self) -> Option<u64>
pub const fn next_value(&self) -> Option<u64>
Checked next major, absent exactly after allocation of u64::MAX.
Sourcepub const fn order_remaining(&self) -> u128
pub const fn order_remaining(&self) -> u128
Current unreserved majors remaining.
Sourcepub const fn reserved_claims(&self) -> u128
pub const fn reserved_claims(&self) -> u128
Current A + X + RO + RA claims.
Sourcepub const fn resulting_order_remaining(&self) -> u128
pub const fn resulting_order_remaining(&self) -> u128
Simulated remaining majors.
Sourcepub const fn resulting_reserved_claims(&self) -> u128
pub const fn resulting_reserved_claims(&self) -> u128
Simulated four-term reserved claims.
Trait Implementations§
Source§impl Clone for ConversationOrderExhausted
impl Clone for ConversationOrderExhausted
Source§fn clone(&self) -> ConversationOrderExhausted
fn clone(&self) -> ConversationOrderExhausted
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 moreSource§impl Debug for ConversationOrderExhausted
impl Debug for ConversationOrderExhausted
impl Eq for ConversationOrderExhausted
impl StructuralPartialEq for ConversationOrderExhausted
Auto Trait Implementations§
impl Freeze for ConversationOrderExhausted
impl RefUnwindSafe for ConversationOrderExhausted
impl Send for ConversationOrderExhausted
impl Sync for ConversationOrderExhausted
impl Unpin for ConversationOrderExhausted
impl UnsafeUnpin for ConversationOrderExhausted
impl UnwindSafe for ConversationOrderExhausted
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