pub enum Kind {
Power,
Energy,
Counter,
}Expand description
How one metric’s samples become one number for one interval.
The kind is carried on each Sample and is never inferred from a unit
string or from the shape of the data.
Variants§
Power
A power-like metric: the interval’s time-weighted mean.
Energy
An energy row already attributed to an instant inside the interval: the sum.
Counter
A monotone cumulative counter: the rise from the first sample to the last inside the interval.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Forget for Kind
impl Freeze for Kind
impl Move for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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