#[non_exhaustive]pub enum MetricValue {
    Counter(u64),
    Gauge(i64),
}Expand description
The value of an individual metric item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl MetricValue
 
impl MetricValue
Sourcepub fn type(&self) -> MetricType
 
pub fn type(&self) -> MetricType
Returns the MetricType for this metric value.
Trait Implementations§
Source§impl Clone for MetricValue
 
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
 
fn clone(&self) -> MetricValue
Returns a copy 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<'de> Deserialize<'de> for MetricValue
 
impl<'de> Deserialize<'de> for MetricValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Metric for MetricValue
 
impl Metric for MetricValue
Source§impl PartialEq for MetricValue
 
impl PartialEq for MetricValue
Source§impl Serialize for MetricValue
 
impl Serialize for MetricValue
impl Copy for MetricValue
impl Eq 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 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