[][src]Trait witchcraft_metrics::Gauge

pub trait Gauge: 'static + Sync + Send {
    fn value(&self) -> Value;
}

A generalized metric which computes an arbitrary value.

It is implemented for all closures returning serializable types.

Required methods

fn value(&self) -> Value

Returns the serialized value.

Loading content...

Implementors

impl<F, R> Gauge for F where
    F: Fn() -> R + 'static + Sync + Send,
    R: Serialize
[src]

Loading content...