pub struct SharedBudget { /* private fields */ }Expand description
The single shared remaining-budget pool for one delegation tree.
Every BudgetLease descended from a common root holds an Arc to the
same SharedBudget. Spending is an atomic, lock-free reservation that can
never take the pool below zero — this is the hard ceiling for the whole tree.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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