pub enum MetricType {
Counter,
Gauge,
Histogram,
Summary,
}Expand description
Prometheus metric type, used in the # TYPE header.
Variants§
Counter
A counter metric.
Gauge
A gauge metric.
Histogram
A histogram metric.
Summary
A summary metric.
Implementations§
Trait Implementations§
Source§impl Clone for MetricType
impl Clone for MetricType
Source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
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 MetricType
impl Debug for MetricType
Source§impl Hash for MetricType
impl Hash for MetricType
Source§impl Ord for MetricType
impl Ord for MetricType
Source§fn cmp(&self, other: &MetricType) -> Ordering
fn cmp(&self, other: &MetricType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetricType
impl PartialEq for MetricType
Source§impl PartialOrd for MetricType
impl PartialOrd for MetricType
impl Copy for MetricType
impl Eq for MetricType
impl StructuralPartialEq for MetricType
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnsafeUnpin for MetricType
impl UnwindSafe for MetricType
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