Trait prometheus_client::metrics::gauge::Atomic
source · pub trait Atomic<N> {
// Required methods
fn inc(&self) -> N;
fn inc_by(&self, v: N) -> N;
fn dec(&self) -> N;
fn dec_by(&self, v: N) -> N;
fn set(&self, v: N) -> N;
fn get(&self) -> N;
}
Expand description
Atomic operations for a Gauge
value store.