Struct micro_kit::metrics::StdCounter [] [src]

pub struct StdCounter { /* fields omitted */ }

Naive implementation of a Counter.

Methods

impl StdCounter
[src]

Create a new StdCounter.

Trait Implementations

impl Default for StdCounter
[src]

Returns the "default value" for a type. Read more

impl Debug for StdCounter
[src]

Formats the value using the given formatter.

impl Counter for StdCounter
[src]

Clear the counter, setting the value to 0.

Increment the counter by 1.

Increment the counter by the given amount. MUST check that v >= 0.

Take a snapshot of the current value for use with a Reporter.