Skip to main content

GaugeFn

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

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

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§