Struct cadence::Counter [−][src]
pub struct Counter { /* fields omitted */ }Counters are simple values incremented or decremented by a client.
See the Counted trait for more information.
Methods
impl Counter[src]
impl CounterTrait Implementations
impl PartialEq for Counter[src]
impl PartialEq for Counterfn eq(&self, other: &Counter) -> bool[src]
fn eq(&self, other: &Counter) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Counter) -> bool[src]
fn ne(&self, other: &Counter) -> boolThis method tests for !=.
impl Eq for Counter[src]
impl Eq for Counterimpl Debug for Counter[src]
impl Debug for Counterfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for Counter[src]
impl Hash for Counterfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Clone for Counter[src]
impl Clone for Counterfn clone(&self) -> Counter[src]
fn clone(&self) -> CounterReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl From<String> for Counter[src]
impl From<String> for Counterimpl Metric for Counter[src]
impl Metric for Counterfn as_metric_str(&self) -> &str[src]
fn as_metric_str(&self) -> &str