[][src]Struct metrix::TelemetryTransmitter

pub struct TelemetryTransmitter<L> { /* fields omitted */ }

Transmits Observations 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

Methods

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]

impl<L: Send + 'static> TransmitsTelemetryData<L> for TelemetryTransmitter<L>[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for TelemetryTransmitter<L>

impl<L> Send for TelemetryTransmitter<L> where
    L: Send

impl<L> Sync for TelemetryTransmitter<L> where
    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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,