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).