Trait metrics::GaugeFn

source ·
pub trait GaugeFn {
    // Required methods
    fn increment(&self, value: f64);
    fn decrement(&self, value: f64);
    fn set(&self, value: f64);
}
Expand description

A gauge handler.

Required Methods§

source

fn increment(&self, value: f64)

Increments the gauge by the given amount.

source

fn decrement(&self, value: f64)

Decrements the gauge by the given amount.

source

fn set(&self, value: f64)

Sets the gauge to the given amount.

Implementations on Foreign Types§

source§

impl<T> GaugeFn for Arc<T>
where T: GaugeFn,

source§

fn increment(&self, value: f64)

source§

fn decrement(&self, value: f64)

source§

fn set(&self, value: f64)

Implementors§