pub enum Metric {
Counter(Arc<Counter>),
Meter(Arc<Meter>),
Gauge(Arc<dyn Gauge>),
Histogram(Arc<Histogram>),
Timer(Arc<Timer>),
}Expand description
An enum of all metric types.
Variants§
Counter(Arc<Counter>)
A counter metric.
Meter(Arc<Meter>)
A meter metric.
Gauge(Arc<dyn Gauge>)
A gauge metric.
Histogram(Arc<Histogram>)
A histogram metric.
Timer(Arc<Timer>)
A timer metric.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metric
impl !RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin 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