[−][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]
L: Send + 'static,
pub fn synced(&self) -> TelemetryTransmitterSync<L>
[src]
Get a TelemetryTransmitterSync
.
Trait Implementations
impl<L> TransmitsTelemetryData<L> for TelemetryTransmitter<L>
[src]
fn transmit(&self, observation: Observation<L>) -> &Self
[src]
fn add_handler<H: HandlesObservations<Label = L>>(&self, handler: H) -> &Self where
L: Send + 'static,
[src]
L: Send + 'static,
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]
fn observed_one(&self, label: L, timestamp: Instant) -> &Self
[src]
fn observed_one_value<V: Into<ObservedValue>>(
&self,
label: L,
value: V,
timestamp: Instant
) -> &Self
[src]
&self,
label: L,
value: V,
timestamp: Instant
) -> &Self
fn observed_duration(
&self,
label: L,
duration: Duration,
timestamp: Instant
) -> &Self
[src]
&self,
label: L,
duration: Duration,
timestamp: Instant
) -> &Self
fn observed_now(&self, label: L, count: u64) -> &Self
[src]
fn observed_one_now(&self, label: L) -> &Self
[src]
fn observed_one_value_now<V: Into<ObservedValue>>(
&self,
label: L,
value: V
) -> &Self
[src]
&self,
label: L,
value: V
) -> &Self
fn observed_one_duration_now(&self, label: L, duration: Duration) -> &Self
[src]
fn measure_time(&self, label: L, from: Instant) -> &Self
[src]
impl<L: Clone> Clone for TelemetryTransmitter<L>
[src]
fn clone(&self) -> TelemetryTransmitter<L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<L> Send for TelemetryTransmitter<L> where
L: Send,
L: Send,
impl<L> Sync for TelemetryTransmitter<L> where
L: Send,
L: Send,
impl<L> Unpin for TelemetryTransmitter<L>
impl<L> UnwindSafe for TelemetryTransmitter<L>
impl<L> RefUnwindSafe for TelemetryTransmitter<L>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,