[−][src]Struct metrix::TelemetryTransmitter
Transmits Observation
s to the backend
It is important that the corresponding TelemetryProcessor
gets mounted on a driver soon
since otherwise the internal queue will get flooded
with unprocessed observations
Implementations
impl<L: Send> TelemetryTransmitter<L>
[src]
pub fn is_queue_full(&self) -> bool
[src]
Returns true
if the internal queue is full.
Always false
on an unbounded queue
pub fn is_queue_empty(&self) -> bool
[src]
Returns true
if the internal queue is empty.
Always true
on an unbounded queue
pub fn queue_size(&self) -> usize
[src]
pub fn queue_capacity(&self) -> Option<usize>
[src]
Returns the capacity of the internal queue.
None
on an unbounded queue
Trait Implementations
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]
impl<L: Send + 'static> 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
[src]
fn add_cockpit(&self, cockpit: Cockpit<L>) -> &Self
[src]
fn remove_cockpit<T: Into<String>>(&self, name: T) -> &Self
[src]
fn add_panel_to_cockpit<T: Into<String>>(
&self,
cockpit_name: T,
panel: Panel<L>
) -> &Self
[src]
&self,
cockpit_name: T,
panel: Panel<L>
) -> &Self
fn remove_panel_from_cockpit<U: Into<String>, V: Into<String>>(
&self,
cockpit_name: U,
panel_name: V
) -> &Self
[src]
&self,
cockpit_name: U,
panel_name: V
) -> &Self
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]
Auto Trait Implementations
impl<L> RefUnwindSafe for TelemetryTransmitter<L>
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>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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 = 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,