Trait hotshot_types::traits::metrics::Counter

source ·
pub trait Counter:
    Send
    + Sync
    + Debug
    + DynClone {
    // Required method
    fn add(&self, amount: usize);
}
Expand description

An ever-incrementing counter

Required Methods§

source

fn add(&self, amount: usize)

Add a value to the counter

Implementors§