Trait metrix::HandlesObservations
source · pub trait HandlesObservations: PutsSnapshot + Send + 'static {
type Label: Send + 'static;
fn handle_observation(
&mut self,
observation: &Observation<Self::Label>
) -> usize;
}
Expand description
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.