[][src]Trait unicycle::PollNext

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

Trait for providing a poll_next implementation.

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

type Item

The output of the poll.

Loading content...

Required methods

fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>>

Poll the stream for the next item.

Loading content...

Implementors

impl<T> PollNext for FuturesUnordered<T> where
    T: Future
[src]

type Item = T::Output

fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<T::Output>>[src]

Internal poll function for FuturesUnordered<T>.

impl<T> PollNext for IndexedStreamsUnordered<T> where
    T: Stream
[src]

type Item = (usize, Option<T::Item>)

impl<T> PollNext for StreamsUnordered<T> where
    T: Stream
[src]

type Item = T::Item

Loading content...