Skip to main content

CounterFn

Trait CounterFn 

Source
pub trait CounterFn: Send + Sync {
    // Required method
    fn increment(&self, value: u64);
}
Expand description

Handle for a monotonically increasing metric.

Required Methods§

Source

fn increment(&self, value: u64)

Increase the counter by value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§