pub enum MetricValue {
Finite(FiniteMetricValue),
Nan,
PositiveInfinity,
NegativeInfinity,
}Expand description
A Prometheus sample value, including the non-finite values its text exposition permits but JSON numbers do not.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
impl Copy for MetricValue
Source§impl Debug for MetricValue
impl Debug for MetricValue
Source§impl PartialEq for MetricValue
impl PartialEq for MetricValue
impl StructuralPartialEq 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