penumbra_sdk_funding::component::metrics

Trait GaugeFn

Source
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§

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§