#[repr(C)]pub enum MetricType {
Gauge = 0,
Count = 1,
Distribution = 2,
Rate = 3,
}Variants§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetricType
Source§impl Debug for MetricType
impl Debug for MetricType
Source§impl<'de> Deserialize<'de> for MetricType
impl<'de> Deserialize<'de> for MetricType
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 Display for MetricType
impl Display for MetricType
impl Eq for MetricType
Source§impl<'_derivative_strum> From<&'_derivative_strum MetricType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum MetricType> for &'static str
Source§fn from(x: &'_derivative_strum MetricType) -> &'static str
fn from(x: &'_derivative_strum MetricType) -> &'static str
Converts to this type from the input type.
Source§impl From<MetricType> for &'static str
impl From<MetricType> for &'static str
Source§fn from(x: MetricType) -> &'static str
fn from(x: MetricType) -> &'static str
Converts to this type from the input type.
Source§impl Hash for MetricType
impl Hash for MetricType
Source§impl IntoEnumIterator for MetricType
impl IntoEnumIterator for MetricType
type Iterator = MetricTypeIter
fn iter() -> MetricTypeIter ⓘ
Source§impl PartialEq for MetricType
impl PartialEq for MetricType
Source§impl Serialize for MetricType
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.