pub struct Backends { /* private fields */ }
Expand description
Backends provides a cloneable contaner for various protocol backends, handling logic like sharding, sampling, and other detectors.
Implementations§
Source§impl Backends
impl Backends
pub fn new() -> Self
pub fn add_statsd_backend(&self, c: &StatsdDuplicateTo) -> Result<()>
pub fn replace_statsd_backend( &self, idx: usize, c: &StatsdDuplicateTo, ) -> Result<()>
pub fn remove_statsd_backend(&self, idx: usize) -> Result<()>
pub fn len(&self) -> usize
pub fn provide_statsd_pdu(&self, pdu: StatsdPDU)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backends
impl !RefUnwindSafe for Backends
impl Send for Backends
impl Sync for Backends
impl Unpin for Backends
impl !UnwindSafe for Backends
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more