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
.
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> 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 Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.