pub struct Metric { /* private fields */ }Expand description
Booked-vs-capacity metric that makes service utilization visible to managers.
Implementations§
Source§impl Metric
impl Metric
Sourcepub const fn new(booked: Booked, capacity: Limit) -> Self
pub const fn new(booked: Booked, capacity: Limit) -> Self
Assembles this daily brief value from already-validated domain parts.
Sourcepub fn saturation_basis_points(&self) -> SaturationBasisPoints
pub fn saturation_basis_points(&self) -> SaturationBasisPoints
Returns the saturation basis points for this daily brief value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metric
impl<'de> Deserialize<'de> for Metric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Metric
impl Eq for Metric
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnsafeUnpin for Metric
impl UnwindSafe for Metric
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