[−][src]Struct metrix::TelemetryTransmitterSync
Transmits Observation
s 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> TransmitsTelemetryData<L> for TelemetryTransmitterSync<L>
[src]
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]
fn observed_one(&self, label: L, timestamp: Instant) -> &Self
[src]
fn observed_one_value(&self, label: L, value: u64, timestamp: Instant) -> &Self
[src]
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(&self, label: L, value: u64) -> &Self
[src]
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 TelemetryTransmitterSync<L>
[src]
fn clone(&self) -> TelemetryTransmitterSync<L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<L> Send for TelemetryTransmitterSync<L> where
L: Send,
L: Send,
impl<L> Sync for TelemetryTransmitterSync<L> where
L: Send,
L: Send,
impl<L> Unpin for TelemetryTransmitterSync<L>
impl<L> UnwindSafe for TelemetryTransmitterSync<L>
impl<L> RefUnwindSafe for TelemetryTransmitterSync<L>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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 = Infallible
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>,