Struct sc_utils::mpsc::TracingUnboundedSender
source · pub struct TracingUnboundedSender<T> { /* private fields */ }
Expand description
Wrapper Type around async_channel::Sender
that increases the global
measure when a message is added.
Implementations§
source§impl<T> TracingUnboundedSender<T>
impl<T> TracingUnboundedSender<T>
sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
Proxy function to async_channel::Sender
.
sourcepub fn close(&self) -> bool
pub fn close(&self) -> bool
Proxy function to async_channel::Sender
.
sourcepub fn unbounded_send(&self, msg: T) -> Result<(), TrySendError<T>>
pub fn unbounded_send(&self, msg: T) -> Result<(), TrySendError<T>>
Proxy function to async_channel::Sender::try_send
.
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
The number of elements in the channel (proxy function to async_channel::Sender
).
Trait Implementations§
source§impl<T> Clone for TracingUnboundedSender<T>
impl<T> Clone for TracingUnboundedSender<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for TracingUnboundedSender<T>
impl<T> Send for TracingUnboundedSender<T>where
T: Send,
impl<T> Sync for TracingUnboundedSender<T>where
T: Send,
impl<T> Unpin for TracingUnboundedSender<T>
impl<T> UnwindSafe for TracingUnboundedSender<T>
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
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresource§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.