pub struct TelemetryTransmitterSync<L> { /* private fields */ }
Expand description

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.