Struct futures::stream::IterOk
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct IterOk<I, E> { /* 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, E> Debug for IterOk<I, E> where
E: Debug,
I: Debug,
[src]
E: Debug,
I: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<I, E> Stream for IterOk<I, E> where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
Values yielded by the stream.
type Error = E
Errors yielded by the stream.
fn poll_next(
&mut self,
&mut Context
) -> Result<Async<Option<<I as Iterator>::Item>>, E>
[src]
&mut self,
&mut Context
) -> Result<Async<Option<<I as Iterator>::Item>>, E>
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