pub struct Excess {
pub unit: Unit,
pub declared: u64,
pub permitted: u64,
}Expand description
A unit in which a budget asks for more than it may have.
Carries both figures, because “over budget” without them sends someone to work out by how much, and by how much is the number that decides what to do about it.
Fields§
§unit: UnitWhich limit.
declared: u64What was asked for, normalised.
permitted: u64What was available, normalised.
Implementations§
Trait Implementations§
impl Copy for Excess
impl Eq for Excess
Source§impl Ord for Excess
impl Ord for Excess
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Excess
impl PartialOrd for Excess
impl StructuralPartialEq for Excess
Auto Trait Implementations§
impl Freeze for Excess
impl RefUnwindSafe for Excess
impl Send for Excess
impl Sync for Excess
impl Unpin for Excess
impl UnsafeUnpin for Excess
impl UnwindSafe for Excess
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