StoreMetric

Trait StoreMetric 

Source
pub trait StoreMetric {
    // Required methods
    fn fetch(&self) -> u64;
    fn store(&self, value: u64);
}
Expand description

Used for defining new types of metrics that do not need a counter and act as a persistent indicator.

Required Methods§

Source

fn fetch(&self) -> u64

Returns current value of the counter.

Source

fn store(&self, value: u64)

Stores value to the current counter.

Implementors§