Trait MemCounter

Source
pub trait MemCounter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn add(&self, bytes: i64);
    fn get_bytes_used(&self) -> i64;
}

Required Methods§

Source

fn add(&self, bytes: i64)

Source

fn get_bytes_used(&self) -> i64

Implementations on Foreign Types§

Source§

impl MemCounter for TrAdderAtomic

Source§

fn add(&self, bytes: i64)

Source§

fn get_bytes_used(&self) -> i64

Source§

impl MemCounter for TrAdderGauge

Source§

fn add(&self, bytes: i64)

Source§

fn get_bytes_used(&self) -> i64

Source§

impl<const N: usize> MemCounter for LabelGuardedIntGauge<N>

Source§

fn add(&self, bytes: i64)

Source§

fn get_bytes_used(&self) -> i64

Implementors§