[][src]Struct sp_utils::mpsc::TracingUnboundedSender

pub struct TracingUnboundedSender<T>(_, _);

Wrapper Type around UnboundedSender that increases the global measure when a message is added

Implementations

impl<T> TracingUnboundedSender<T>[src]

pub fn poll_ready(&self, ctx: &mut Context<'_>) -> Poll<Result<(), SendError>>[src]

Proxy function to mpsc::UnboundedSender

pub fn is_closed(&self) -> bool[src]

Proxy function to mpsc::UnboundedSender

pub fn close_channel(&self)[src]

Proxy function to mpsc::UnboundedSender

pub fn disconnect(&mut self)[src]

Proxy function to mpsc::UnboundedSender

pub fn start_send(&mut self, msg: T) -> Result<(), SendError>[src]

Proxy function to mpsc::UnboundedSender

pub fn unbounded_send(&self, msg: T) -> Result<(), TrySendError<T>>[src]

Proxy function to mpsc::UnboundedSender

pub fn same_receiver(&self, other: &UnboundedSender<T>) -> bool[src]

Proxy function to mpsc::UnboundedSender

Trait Implementations

impl<T> Clone for TracingUnboundedSender<T>[src]

impl<T: Debug> Debug for TracingUnboundedSender<T>[src]

impl<T> Sink<T> for TracingUnboundedSender<T>[src]

type Error = SendError

The type of value produced by the sink when an error occurs.

impl<T> Sink<T> for &TracingUnboundedSender<T>[src]

type Error = SendError

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl<T> !RefUnwindSafe for TracingUnboundedSender<T>[src]

impl<T> Send for TracingUnboundedSender<T> where
    T: Send
[src]

impl<T> Sync for TracingUnboundedSender<T> where
    T: Send
[src]

impl<T> Unpin for TracingUnboundedSender<T>[src]

impl<T> !UnwindSafe for TracingUnboundedSender<T>[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized

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.