Struct counter64::Counter
[−]
[src]
pub struct Counter(_);
Methods
impl Counter
[src]
pub fn new() -> Self
[src]
Create new counter from 0
pub fn get(&self) -> u64
[src]
Get counter's current value
pub fn incr(&self) -> u64
[src]
Increase counter by 1, and return previous value