pub enum MetricType {
Counter,
Gauge,
Histogram,
Info,
Unknown,
}Expand description
OpenMetrics metric type.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for MetricType
impl Clone for MetricType
impl Copy for MetricType
Source§impl Debug for MetricType
impl Debug for MetricType
Source§impl From<MetricType> for MetricType
Available on crate feature openmetrics_protobuf only.
impl From<MetricType> for MetricType
Available on crate feature
openmetrics_protobuf only.Source§fn from(m: MetricType) -> Self
fn from(m: MetricType) -> Self
Converts to this type from the input type.
Source§impl From<MetricType> for MetricType
Available on crate feature prometheus_protobuf only.
impl From<MetricType> for MetricType
Available on crate feature
prometheus_protobuf only.Source§fn from(metric_type: MetricType) -> Self
fn from(metric_type: MetricType) -> Self
Converts to this type from the input type.
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