pub trait Atomic<N> {
// Required methods
fn inc(&self) -> N;
fn inc_by(&self, v: N) -> N;
fn get(&self) -> N;
}Expand description
Atomic operations for a Counter value store.
pub trait Atomic<N> {
// Required methods
fn inc(&self) -> N;
fn inc_by(&self, v: N) -> N;
fn get(&self) -> N;
}Atomic operations for a Counter value store.