Trait stats::prelude::Counter

source ·
pub trait Counter {
    // Required method
    fn increment_value(&self, value: i64);
}
Expand description

Counter is the simplest type of aggregated stat, it behaves as a single number that can be incremented.

Required Methods§

source

fn increment_value(&self, value: i64)

Increments the counter by the given amount.

Implementations on Foreign Types§

source§

impl<T> Counter for Box<T>
where T: Counter + ?Sized,

source§

fn increment_value(&self, value: i64)

Implementors§