pub enum MetricType<'a> {
    Counter,
    Gauge,
    Gaugehistogram,
    Histogram,
    Info,
    Stateset,
    Summary,
    Unknown(&'a str),
}Expand description
The type of the metric
Variants§
Counter
A counter measures discrete events
Gauge
A guage measures a current value
Gaugehistogram
A gauge histogram measures current distributions
Histogram
A distribution of discrete events
Info
Exposes textual information through labels
Stateset
A series of related boolean values
Summary
A quantile summary of discrete events
Unknown(&'a str)
Unknown type
Trait Implementations§
Source§impl<'a> Debug for MetricType<'a>
 
impl<'a> Debug for MetricType<'a>
Source§impl<'a> Display for MetricType<'a>
 
impl<'a> Display for MetricType<'a>
Source§impl<'a> PartialEq for MetricType<'a>
 
impl<'a> PartialEq for MetricType<'a>
impl<'a> StructuralPartialEq for MetricType<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetricType<'a>
impl<'a> RefUnwindSafe for MetricType<'a>
impl<'a> Send for MetricType<'a>
impl<'a> Sync for MetricType<'a>
impl<'a> Unpin for MetricType<'a>
impl<'a> UnwindSafe for MetricType<'a>
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