Struct futures::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> Unpin for Iter<I>
[src]
impl<I> Unpin for Iter<I>
impl<I> Debug for Iter<I> where
I: Debug,
[src]
impl<I> Debug for Iter<I> where
I: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<I> Stream for Iter<I> where
I: Iterator,
[src]
impl<I> Stream for Iter<I> where
I: Iterator,
type Item = <I as Iterator>::Item
Values yielded by the stream.
fn poll_next(
self: PinMut<Iter<I>>,
&mut Context
) -> Poll<Option<<I as Iterator>::Item>>
[src]
fn poll_next(
self: PinMut<Iter<I>>,
&mut Context
) -> Poll<Option<<I as Iterator>::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