[−][src]Trait unicycle::PollNext
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.
Required methods
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
Poll the stream for the next item.
Implementors
impl<T> PollNext for FuturesUnordered<T> where
T: Future,
[src]
T: Future,
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]
T: Stream,
type Item = (usize, Option<T::Item>)
fn poll_next(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
[src]
impl<T> PollNext for StreamsUnordered<T> where
T: Stream,
[src]
T: Stream,