PollableReceiver

Trait PollableReceiver 

Source
pub trait PollableReceiver {
    type Item;
    type Error;

    // Required method
    fn poll_recv(
        &mut self,
        cx: &mut Context<'_>,
    ) -> Poll<Result<Option<Self::Item>, Self::Error>>;
}
Expand description

Trait for receivers that can be polled (not blocking).

Required Associated Types§

Required Methods§

Source

fn poll_recv( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<Self::Item>, Self::Error>>

Implementors§