penumbra_dex::component::metrics

Trait GaugeFn

pub trait GaugeFn {
    // Required methods
    fn increment(&self, value: f64);
    fn decrement(&self, value: f64);
    fn set(&self, value: f64);
}
Available on crate feature component only.
Expand description

A gauge handler.

Required Methods§

fn increment(&self, value: f64)

Increments the gauge by the given amount.

fn decrement(&self, value: f64)

Decrements the gauge by the given amount.

fn set(&self, value: f64)

Sets the gauge to the given amount.

Implementations on Foreign Types§

§

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

§

fn increment(&self, value: f64)

§

fn decrement(&self, value: f64)

§

fn set(&self, value: f64)

§

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

§

fn increment(&self, value: f64)

§

fn decrement(&self, value: f64)

§

fn set(&self, value: f64)

Implementors§