Struct metrix::TelemetryTransmitterSync[][src]

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

Transmits Observations to the backend and has the Sync marker.

This is almost the same as the TelemetryTransmitter.

Since a Sender for a channel is not Sync this struct wraps the Sender in an Arc<Mutex<_>> so that it can be shared between threads.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Transit an observation to the backend.

Add a handler.

Add a Copckpit

Add a Panel to a Cockpit if that Cockpit has the given name. Read more

Observed count occurences at time timestamp Read more

Observed one occurence at time timestamp Read more

Observed one occurence with value value at time timestamp Read more

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

Observed count occurences at now. Read more

Observed one occurence now Read more

Observed one occurence with value value now Read more

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

Measures the time from from until now. Read more

Auto Trait Implementations

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

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