pub struct BudgetGuard(/* private fields */);
Expand description
A locally acquired budget.
This guard is acquired by calling take
and can be used to take permits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BudgetGuard
impl RefUnwindSafe for BudgetGuard
impl Send for BudgetGuard
impl Sync for BudgetGuard
impl Unpin for BudgetGuard
impl UnwindSafe for BudgetGuard
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