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 Observation
s where
the Label
is the type of the label.
You can use this to implement your own metrics.