pub trait PollNext {
    type Item;
    fn poll_next(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>
    ) -> Poll<Option<Self::Item>>; }
Expand description

Trait for providing a poll_next implementation for various unordered set types.

This is like the lightweight unicycle version of the Stream trait, but we provide it here so we can shim in our own generic next implementation.

Associated Types

The output of the poll.

Required methods

Poll the stream for the next item.

Once this completes with Poll::Ready(None), no more items are expected and it should not be polled again.

Implementors