pub enum MeasuredValue {
Bytes(u64),
ByteRate(Rate),
EventRate(Rate),
Percent(Percent),
Count(u64),
Duration(Duration),
Load(f32),
}Expand description
A raw measured quantity, tagged with what kind of quantity it is.
Variants§
Bytes(u64)
A byte count.
ByteRate(Rate)
A per-second rate of bytes.
EventRate(Rate)
A per-second rate of discrete events (packets, operations).
Percent(Percent)
A percentage.
Count(u64)
A plain count of things.
Duration(Duration)
A span of time.
Load(f32)
A load average figure, which is a queue length rather than a percentage.
Implementations§
Trait Implementations§
Source§impl Clone for MeasuredValue
impl Clone for MeasuredValue
Source§fn clone(&self) -> MeasuredValue
fn clone(&self) -> MeasuredValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MeasuredValue
Source§impl Debug for MeasuredValue
impl Debug for MeasuredValue
Source§impl PartialEq for MeasuredValue
impl PartialEq for MeasuredValue
impl StructuralPartialEq for MeasuredValue
Auto Trait Implementations§
impl Freeze for MeasuredValue
impl RefUnwindSafe for MeasuredValue
impl Send for MeasuredValue
impl Sync for MeasuredValue
impl Unpin for MeasuredValue
impl UnsafeUnpin for MeasuredValue
impl UnwindSafe for MeasuredValue
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