Skip to main content

MemCounter

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl MemCounter for LabelGuardedIntGauge

Source§

fn add(&self, bytes: i64)

Source§

fn get_bytes_used(&self) -> i64

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

Implementors§