[][src]Struct statsrelay::backends::Backends

pub struct Backends { /* fields omitted */ }

Backends provides a cloneable contaner for various protocol backends, handling logic like sharding, sampling, and other detectors.

Implementations

impl Backends[src]

pub fn new() -> Self[src]

pub fn add_statsd_backend(&self, c: &StatsdDuplicateTo) -> Result<()>[src]

pub fn replace_statsd_backend(
    &self,
    idx: usize,
    c: &StatsdDuplicateTo
) -> Result<()>
[src]

pub fn remove_statsd_backend(&self, idx: usize) -> Result<()>[src]

pub fn len(&self) -> usize[src]

pub fn provide_statsd_pdu(&self, pdu: StatsdPDU)[src]

Trait Implementations

impl Clone for Backends[src]

Auto Trait Implementations

impl !RefUnwindSafe for Backends

impl Send for Backends

impl Sync for Backends

impl Unpin for Backends

impl !UnwindSafe for Backends

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.