Trait metrix::instruments::HandlesObservations [] [src]

pub trait HandlesObservations: Send + 'static {
    type Label: Send + 'static;
    fn handle_observation(&mut self, observation: &Observation<Self::Label>);
fn name(&self) -> &str;
fn snapshot(&self) -> CockpitSnapshot; }

Something that can react on Observations where the Label is the type of the label.

You can use this to implement your own Metrics.

Associated Types

Required Methods

Implementors