Struct metrix::TelemetryTransmitter
[−]
[src]
pub struct TelemetryTransmitter<L> { /* fields omitted */ }
Transmits Observation
s 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]
L: Send + 'static,
pub fn synced(&self) -> TelemetryTransmitterSync<L>
[src]
Get a TelemetryTransmitterSync
.
Trait Implementations
impl<L: Clone> Clone for TelemetryTransmitter<L>
[src]
fn clone(&self) -> TelemetryTransmitter<L>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<L> TransmitsTelemetryData<L> for TelemetryTransmitter<L>
[src]
fn transmit(&self, observation: Observation<L>)
[src]
Transit an observation to the backend.
fn add_handler(&self, handler: Box<HandlesObservations<Label = L>>)
[src]
Add a handler.
fn add_cockpit(&self, cockpit: Cockpit<L>)
[src]
Add a Copckpit
fn add_panel_to_cockpit(&self, cockpit_name: String, panel: Panel<L>)
[src]
Add a Panel
to a Cockpit
if that Cockpit
has the given name. Read more
fn observed(&self, label: L, count: u64, timestamp: Instant)
[src]
Observed count
occurences at time timestamp
Read more
fn observed_one(&self, label: L, timestamp: Instant)
[src]
Observed one occurence at time timestamp
Read more
fn observed_one_value(&self, label: L, value: u64, timestamp: Instant)
[src]
Observed one occurence with value value
at time timestamp
Read more
fn observed_duration(&self, label: L, duration: Duration, timestamp: Instant)
[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)
[src]
Observed count
occurences at now. Read more
fn observed_one_now(&self, label: L)
[src]
Observed one occurence now Read more
fn observed_one_value_now(&self, label: L, value: u64)
[src]
Observed one occurence with value value
now Read more
fn observed_one_duration_now(&self, label: L, duration: Duration)
[src]
Sends a Duration
as an observed value observed with the current timestamp. Read more
fn measure_time(&self, label: L, from: Instant)
[src]
Measures the time from from
until now. Read more
Auto Trait Implementations
impl<L> Send for TelemetryTransmitter<L> where
L: Send,
L: Send,