pub struct TokioMpscSink { /* private fields */ }Expand description
Non-blocking telemetry sink backed by a Tokio MPSC channel.
emit() is non-blocking — events are queued to the channel. flush() is
synchronous and blocks until the background worker acknowledges all prior
events. Call flush().await before the process exits.
Implementations§
Trait Implementations§
Source§impl Clone for TokioMpscSink
impl Clone for TokioMpscSink
Source§fn clone(&self) -> TokioMpscSink
fn clone(&self) -> TokioMpscSink
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TokioMpscSink
impl RefUnwindSafe for TokioMpscSink
impl Send for TokioMpscSink
impl Sync for TokioMpscSink
impl Unpin for TokioMpscSink
impl UnsafeUnpin for TokioMpscSink
impl UnwindSafe for TokioMpscSink
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