Struct futures_util::stream::IterResult
[−]
[src]
#[must_use = "streams do nothing unless polled"]pub struct IterResult<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 IterResult<I>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<I, T, E> Stream for IterResult<I> where
I: Iterator<Item = Result<T, E>>,
[src]
I: Iterator<Item = Result<T, E>>,
type Item = T
Values yielded by the stream.
type Error = E
Errors yielded by the stream.
fn poll_next(&mut self, _: &mut Context) -> Poll<Option<T>, E>
[src]
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
Auto Trait Implementations
impl<I> Send for IterResult<I> where
I: Send,
I: Send,
impl<I> Sync for IterResult<I> where
I: Sync,
I: Sync,