Trait AsyncSenderExt

Source
pub trait AsyncSenderExt<T>: AsyncSender<T> {
    // Provided method
    fn pin_boxed<'a>(self) -> BoxSender<'a, T>
       where Self: Sized + Send + 'a { ... }
}
Expand description

扩展的异步发送器

Provided Methods§

Source

fn pin_boxed<'a>(self) -> BoxSender<'a, T>
where Self: Sized + Send + 'a,

封装AsyncSender为Box,并将它固定

Implementors§

Source§

impl<T, U> AsyncSenderExt<U> for T
where T: AsyncSender<U>,