pub enum BudgetEvent {
SoftLimitExceeded {
tag: &'static str,
current: usize,
limit: usize,
},
HardLimitExceeded {
tag: &'static str,
current: usize,
limit: usize,
},
GlobalLimitExceeded {
current: usize,
limit: usize,
},
NewPeak {
tag: &'static str,
peak: usize,
},
}Expand description
Events emitted by the budget manager.
Variants§
SoftLimitExceeded
Soft limit exceeded
HardLimitExceeded
Hard limit exceeded
GlobalLimitExceeded
Global limit exceeded
NewPeak
New peak usage recorded
Trait Implementations§
Source§impl Clone for BudgetEvent
impl Clone for BudgetEvent
Source§fn clone(&self) -> BudgetEvent
fn clone(&self) -> BudgetEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BudgetEvent
impl RefUnwindSafe for BudgetEvent
impl Send for BudgetEvent
impl Sync for BudgetEvent
impl Unpin for BudgetEvent
impl UnwindSafe for BudgetEvent
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