pub enum MetricFamilyType {
Counter,
Gauge,
String,
Object,
}Expand description
Metric family type, as in systemd’s io.systemd.Metrics IDL.
Variants§
Counter
Gauge
String
Object
Arbitrary JSON object. monitord exports none; listed so our introspected IDL matches systemd’s.
Trait Implementations§
Source§impl Clone for MetricFamilyType
impl Clone for MetricFamilyType
Source§fn clone(&self) -> MetricFamilyType
fn clone(&self) -> MetricFamilyType
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 MetricFamilyType
Source§impl Debug for MetricFamilyType
impl Debug for MetricFamilyType
Source§impl<'de> Deserialize<'de> for MetricFamilyType
impl<'de> Deserialize<'de> for MetricFamilyType
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
impl Eq for MetricFamilyType
Source§impl PartialEq for MetricFamilyType
impl PartialEq for MetricFamilyType
Source§fn eq(&self, other: &MetricFamilyType) -> bool
fn eq(&self, other: &MetricFamilyType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricFamilyType
impl Serialize for MetricFamilyType
impl StructuralPartialEq for MetricFamilyType
Auto Trait Implementations§
impl Freeze for MetricFamilyType
impl RefUnwindSafe for MetricFamilyType
impl Send for MetricFamilyType
impl Sync for MetricFamilyType
impl Unpin for MetricFamilyType
impl UnsafeUnpin for MetricFamilyType
impl UnwindSafe for MetricFamilyType
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.