pub struct LedgerLimits {
pub per_execution_tokens: u64,
pub max_held_tokens: u64,
}Expand description
The two ceilings one execution’s ledger enforces. The server-wide cap lives on
the SharedTokenBudget.
Fields§
§per_execution_tokens: u64Tokens one execution may hold in total.
max_held_tokens: u64Tokens one execution may hold as indeterminate reserve before further reservation is refused.
Trait Implementations§
Source§impl Clone for LedgerLimits
impl Clone for LedgerLimits
impl Copy for LedgerLimits
Source§impl Debug for LedgerLimits
impl Debug for LedgerLimits
impl Eq for LedgerLimits
Source§impl PartialEq for LedgerLimits
impl PartialEq for LedgerLimits
impl StructuralPartialEq for LedgerLimits
Auto Trait Implementations§
impl Freeze for LedgerLimits
impl RefUnwindSafe for LedgerLimits
impl Send for LedgerLimits
impl Sync for LedgerLimits
impl Unpin for LedgerLimits
impl UnsafeUnpin for LedgerLimits
impl UnwindSafe for LedgerLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.