[][src]Struct metrix::TelemetryTransmitter

pub struct TelemetryTransmitter<L> { /* fields omitted */ }

Transmits Observations to the backend

This struct does not implement the Sync trait and can therefore not be shared between threads. See synced() method.

Methods

impl<L> TelemetryTransmitter<L> where
    L: Send + 'static, 
[src]

pub fn synced(&self) -> TelemetryTransmitterSync<L>[src]

Get a TelemetryTransmitterSync.

Trait Implementations

impl<L> TransmitsTelemetryData<L> for TelemetryTransmitter<L>[src]

fn observed(&self, label: L, count: u64, timestamp: Instant) -> &Self[src]

Observed count occurences at time timestamp Read more

fn observed_one(&self, label: L, timestamp: Instant) -> &Self[src]

Observed one occurence at time timestamp Read more

fn observed_one_value(&self, label: L, value: u64, timestamp: Instant) -> &Self[src]

Observed one occurence with value value at time timestamp Read more

fn observed_duration(
    &self,
    label: L,
    duration: Duration,
    timestamp: Instant
) -> &Self
[src]

Sends a Duration as an observed value observed at timestamp. The Duration is converted to nanoseconds. Read more

fn observed_now(&self, label: L, count: u64) -> &Self[src]

Observed count occurences at now. Read more

fn observed_one_now(&self, label: L) -> &Self[src]

Observed one occurence now Read more

fn observed_one_value_now(&self, label: L, value: u64) -> &Self[src]

Observed one occurence with value value now Read more

fn observed_one_duration_now(&self, label: L, duration: Duration) -> &Self[src]

Sends a Duration as an observed value observed with the current timestamp. Read more

fn measure_time(&self, label: L, from: Instant) -> &Self[src]

Measures the time from from until now. Read more

impl<L: Clone> Clone for TelemetryTransmitter<L>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<L> Send for TelemetryTransmitter<L> where
    L: Send

impl<L> Sync for TelemetryTransmitter<L> where
    L: Send

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.