pub enum MetricKind {
Counter,
Gauge,
}Expand description
Whether a metric is a monotonically increasing counter or a point-in-time gauge.
Variants§
Counter
Monotonically increasing (bytes sent, pieces downloaded, etc.).
Gauge
Current value that can go up or down (connections, DHT nodes, etc.).
Trait Implementations§
Source§impl Clone for MetricKind
impl Clone for MetricKind
Source§fn clone(&self) -> MetricKind
fn clone(&self) -> MetricKind
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 moreSource§impl Debug for MetricKind
impl Debug for MetricKind
Source§impl<'de> Deserialize<'de> for MetricKind
impl<'de> Deserialize<'de> for MetricKind
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 PartialEq for MetricKind
impl PartialEq for MetricKind
Source§fn eq(&self, other: &MetricKind) -> bool
fn eq(&self, other: &MetricKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricKind
impl Serialize for MetricKind
impl Copy for MetricKind
impl Eq for MetricKind
impl StructuralPartialEq for MetricKind
Auto Trait Implementations§
impl Freeze for MetricKind
impl RefUnwindSafe for MetricKind
impl Send for MetricKind
impl Sync for MetricKind
impl Unpin for MetricKind
impl UnsafeUnpin for MetricKind
impl UnwindSafe for MetricKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.