Trait metrix::cockpit::HandlesObservations[][src]

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

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