pub enum InputKind {
Marker,
Counter,
Level,
Gauge,
Timer,
}
Expand description
Used to differentiate between metric kinds in the backend.
Variants§
Marker
Monotonic counter
Counter
Strictly positive quantity accumulation
Level
Cumulative quantity fluctuation
Gauge
Instant measurement of a resource at a point in time (non-cumulative)
Timer
Time interval, internal to the app or provided by an external source
Trait Implementations§
source§impl<'a> From<&'a str> for InputKind
impl<'a> From<&'a str> for InputKind
Used by the metrics! macro to obtain the InputKind from the stringified type.
source§impl PartialEq for InputKind
impl PartialEq for InputKind
impl Copy for InputKind
impl Eq for InputKind
impl StructuralPartialEq for InputKind
Auto Trait Implementations§
impl Freeze for InputKind
impl RefUnwindSafe for InputKind
impl Send for InputKind
impl Sync for InputKind
impl Unpin for InputKind
impl UnwindSafe for InputKind
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