CounterExt

Trait CounterExt 

Source
pub trait CounterExt {
    // Required methods
    fn guard(&self, status: Status) -> CounterGuard;
    fn inc(&self, status: Status);
    fn inc_by(&self, status: Status, n: u64);
}
Expand description

Trait providing convenience methods for Counter.

Required Methods§

Source

fn guard(&self, status: Status) -> CounterGuard

Source

fn inc(&self, status: Status)

Source

fn inc_by(&self, status: Status, n: u64)

Implementors§