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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Collect an observation.

[src]

[src]

[src]

Observed count occurences at time timestamp Read more

[src]

Observed one occurence at time timestamp Read more

[src]

Observed one occurence with value value at time timestamp Read more

[src]

Observed count occurences at now. Read more

[src]

Observed one occurence now Read more

[src]

Observed one occurence with value value now Read more