Struct futures_util::stream::Iter [−][src]
#[must_use = "streams do nothing unless polled"]pub struct Iter<I> { /* fields omitted */ }
A stream which is just a shim over an underlying instance of Iterator
.
This stream will never block and is always ready.
Trait Implementations
impl<I: Debug> Debug for Iter<I>
[src]
impl<I: Debug> Debug for Iter<I>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<I> Unpin for Iter<I>
[src]
impl<I> Unpin for Iter<I>
impl<I> Stream for Iter<I> where
I: Iterator,
[src]
impl<I> Stream for Iter<I> where
I: Iterator,
type Item = I::Item
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, _: &mut Context) -> Poll<Option<I::Item>>
[src]
fn poll_next(self: PinMut<Self>, _: &mut Context) -> Poll<Option<I::Item>>
Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None
if the stream is exhausted. Read more