pub enum MetricValue {
Counter(Counter),
Histogram(Histogram),
Timer(Timer),
Gauge(Gauge),
}Expand description
The value of a metric.
Variants§
Counter(Counter)
Counter value
Histogram(Histogram)
Histogram value
Timer(Timer)
Timer value
Gauge(Gauge)
Gauge value
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricValue
impl Debug for MetricValue
Source§impl From<Counter> for MetricValue
impl From<Counter> for MetricValue
Source§impl From<Gauge> for MetricValue
impl From<Gauge> for MetricValue
Source§impl From<Histogram> for MetricValue
impl From<Histogram> for MetricValue
Auto Trait Implementations§
impl Freeze for MetricValue
impl !RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnsafeUnpin for MetricValue
impl !UnwindSafe for MetricValue
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