pub enum MetricData<T> {
Gauge(Gauge<T>),
Sum(Sum<T>),
Histogram(Histogram<T>),
ExponentialHistogram(ExponentialHistogram<T>),
}Expand description
Metric data for all types
Variants§
Gauge(Gauge<T>)
Metric data for Gauge
Sum(Sum<T>)
Metric data for Sum
Histogram(Histogram<T>)
Metric data for Histogram
ExponentialHistogram(ExponentialHistogram<T>)
Metric data for ExponentialHistogram
Trait Implementations§
Source§impl<T: Debug> Debug for MetricData<T>
impl<T: Debug> Debug for MetricData<T>
Source§impl<T> From<ExponentialHistogram<T>> for MetricData<T>
impl<T> From<ExponentialHistogram<T>> for MetricData<T>
Source§fn from(value: ExponentialHistogram<T>) -> Self
fn from(value: ExponentialHistogram<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<Gauge<T>> for MetricData<T>
impl<T> From<Gauge<T>> for MetricData<T>
Source§impl<T> From<Histogram<T>> for MetricData<T>
impl<T> From<Histogram<T>> for MetricData<T>
Source§impl From<MetricData<f64>> for AggregatedMetrics
impl From<MetricData<f64>> for AggregatedMetrics
Source§fn from(value: MetricData<f64>) -> Self
fn from(value: MetricData<f64>) -> Self
Converts to this type from the input type.
Source§impl From<MetricData<i64>> for AggregatedMetrics
impl From<MetricData<i64>> for AggregatedMetrics
Source§fn from(value: MetricData<i64>) -> Self
fn from(value: MetricData<i64>) -> Self
Converts to this type from the input type.
Source§impl From<MetricData<u64>> for AggregatedMetrics
impl From<MetricData<u64>> for AggregatedMetrics
Source§fn from(value: MetricData<u64>) -> Self
fn from(value: MetricData<u64>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for MetricData<T>
impl<T> RefUnwindSafe for MetricData<T>where
T: RefUnwindSafe,
impl<T> Send for MetricData<T>where
T: Send,
impl<T> Sync for MetricData<T>where
T: Sync,
impl<T> Unpin for MetricData<T>where
T: Unpin,
impl<T> UnwindSafe for MetricData<T>where
T: UnwindSafe,
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