SenderExt

Trait SenderExt 

Source
pub trait SenderExt<T> {
    // Required method
    fn send_in<'life0, 'async_trait>(
        &'life0 self,
        message: T,
        after: Duration,
    ) -> Pin<Box<dyn Future<Output = Result<usize, SendError<T>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn send_in<'life0, 'async_trait>( &'life0 self, message: T, after: Duration, ) -> Pin<Box<dyn Future<Output = Result<usize, SendError<T>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl<T: Send> SenderExt<T> for Sender<T>

Source§

fn send_in<'life0, 'async_trait>( &'life0 self, message: T, after: Duration, ) -> Pin<Box<dyn Future<Output = Result<usize, SendError<T>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§