Enum witchcraft_metrics::Metric
source · [−]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 !RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl !UnwindSafe for Metric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more