PollableChannel

Trait PollableChannel 

Source
pub trait PollableChannel: Channel {
    // Required method
    fn try_receive<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Option<Exchange>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Dequeue extension (QueueChannel).

Required Methods§

Source

fn try_receive<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Option<Exchange>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§