Trait metrix::TransmitsTelemetryData [] [src]

pub trait TransmitsTelemetryData<L> {
    fn transmit(&self, observation: Observation<L>);
fn add_handler(&mut self, handler: Box<HandlesObservations<Label = L>>);
fn add_cockpit(&mut self, cockpit: Cockpit<L>); fn observed(&self, label: L, count: u64, timestamp: Instant) { ... }
fn observed_one(&self, label: L, timestamp: Instant) { ... }
fn observed_one_value(&self, label: L, value: u64, timestamp: Instant) { ... }
fn observed_duration(
        &self,
        label: L,
        duration: Duration,
        timestamp: Instant
    ) { ... }
fn measure_time(&self, label: L, from: Instant) { ... }
fn observed_now(&self, label: L, count: u64) { ... }
fn observed_one_now(&self, label: L) { ... }
fn observed_one_value_now(&self, label: L, value: u64) { ... }
fn observed_one_duration_now(&self, label: L, duration: Duration) { ... } }

Required Methods

Collect an observation.

Provided Methods

Observed count occurences at time timestamp

Convinience method. Simply calls transmit

Observed one occurence at time timestamp

Convinience method. Simply calls transmit

Observed one occurence with value value at time timestamp

Convinience method. Simply calls transmit

Observed count occurences at now.

Convinience method. Simply calls transmit

Observed one occurence now

Convinience method. Simply calls transmit

Observed one occurence with value value now

Convinience method. Simply calls transmit

Implementors