pub struct BudgetSnapshot {
pub limit: usize,
pub used: usize,
pub peak: usize,
}Expand description
Point-in-time usage of one budget: configured limit, current and peak use.
Fields§
§limit: usizeConfigured byte limit.
used: usizeBytes currently charged.
peak: usizeHighest usage observed.
Trait Implementations§
Source§impl Clone for BudgetSnapshot
impl Clone for BudgetSnapshot
impl Copy for BudgetSnapshot
Source§impl Debug for BudgetSnapshot
impl Debug for BudgetSnapshot
impl Eq for BudgetSnapshot
Source§impl PartialEq for BudgetSnapshot
impl PartialEq for BudgetSnapshot
impl StructuralPartialEq for BudgetSnapshot
Auto Trait Implementations§
impl Freeze for BudgetSnapshot
impl RefUnwindSafe for BudgetSnapshot
impl Send for BudgetSnapshot
impl Sync for BudgetSnapshot
impl Unpin for BudgetSnapshot
impl UnsafeUnpin for BudgetSnapshot
impl UnwindSafe for BudgetSnapshot
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§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.