[][src]Trait metrix::HandlesObservations

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

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

type Label: Send + 'static

Loading content...

Required methods

fn handle_observation(
    &mut self,
    observation: &Observation<Self::Label>
) -> usize

Loading content...

Implementors

impl<L> HandlesObservations for Cockpit<L> where
    L: Clone + Eq + Send + 'static, 
[src]

type Label = L

Loading content...