[−][src]Struct metrix::TelemetryTransmitter
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]
impl<L> TelemetryTransmitter<L> where
L: Send + 'static,
pub fn synced(&self) -> TelemetryTransmitterSync<L> | [src] |
Get a TelemetryTransmitterSync
.
Trait Implementations
impl<L> TransmitsTelemetryData<L> for TelemetryTransmitter<L>
[src]
impl<L> TransmitsTelemetryData<L> for TelemetryTransmitter<L>
fn transmit(&self, observation: Observation<L>) -> &Self | [src] |
fn add_handler(&self, handler: Box<dyn HandlesObservations<Label = L>>) -> &Self | [src] |
fn add_cockpit(&self, cockpit: Cockpit<L>) -> &Self | [src] |
fn add_panel_to_cockpit(&self, cockpit_name: String, panel: Panel<L>) -> &Self | [src] |
fn observed(&self, label: L, count: u64, timestamp: Instant) -> &Self | [src] |
Observed count
occurences at time timestamp
Read more
fn observed_one(&self, label: L, timestamp: Instant) -> &Self | [src] |
Observed one occurence at time timestamp
Read more
fn observed_one_value(&self, label: L, value: u64, timestamp: Instant) -> &Self | [src] |
Observed one occurence with value value
at time timestamp
Read more
fn observed_duration( | [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) -> &Self | [src] |
Observed count
occurences at now. Read more
fn observed_one_now(&self, label: L) -> &Self | [src] |
Observed one occurence now Read more
fn observed_one_value_now(&self, label: L, value: u64) -> &Self | [src] |
Observed one occurence with value value
now Read more
fn observed_one_duration_now(&self, label: L, duration: Duration) -> &Self | [src] |
Sends a Duration
as an observed value observed with the current timestamp. Read more
fn measure_time(&self, label: L, from: Instant) -> &Self | [src] |
Measures the time from from
until now. Read more
impl<L: Clone> Clone for TelemetryTransmitter<L>
[src]
impl<L: Clone> Clone for TelemetryTransmitter<L>
fn clone(&self) -> TelemetryTransmitter<L> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<L> Send for TelemetryTransmitter<L> where
L: Send,
impl<L> Send for TelemetryTransmitter<L> where
L: Send,
impl<L> Sync for TelemetryTransmitter<L> where
L: Send,
impl<L> Sync for TelemetryTransmitter<L> where
L: Send,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T