Trait hotshot_types::traits::metrics::Gauge

source ·
pub trait Gauge:
    Send
    + Sync
    + Debug
    + DynClone {
    // Required methods
    fn set(&self, amount: usize);
    fn update(&self, delta: i64);
}
Expand description

A gauge that stores the latest value.

Required Methods§

source

fn set(&self, amount: usize)

Set the gauge value

source

fn update(&self, delta: i64)

Update the gauge value

Implementors§