Skip to main content

Counter

Trait Counter 

Source
pub trait Counter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn inc(&self);
    fn inc_by(&self, v: u64);
    fn get(&self) -> u64;
}
Expand description

Single counter handle (one specific label combination).

Required Methods§

Source

fn inc(&self)

Source

fn inc_by(&self, v: u64)

Source

fn get(&self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§