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]

Transit an observation to the backend.

[src]

Add a handler.

[src]

Add a Copckpit

[src]

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

[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]

Sends a Duration as an observed value observed at timestamp. The Duration is converted to nanoseconds. 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

[src]

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

[src]

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