Struct futures::future::FlattenStream [−][src]
#[must_use = "streams do nothing unless polled"]pub struct FlattenStream<F> where
F: Future,
<F as Future>::Item: Stream,
<<F as Future>::Item as Stream>::Error == <F as Future>::Error, { /* fields omitted */ }
Future for the flatten_stream
combinator, flattening a
future-of-a-stream to get just the result of the final stream as a stream.
This is created by the Future::flatten_stream
method.
Trait Implementations
impl<F> Debug for FlattenStream<F> where
F: Future + Debug,
<F as Future>::Item: Stream,
<F as Future>::Item: Debug,
<<F as Future>::Item as Stream>::Error == <F as Future>::Error,
[src]
impl<F> Debug for FlattenStream<F> where
F: Future + Debug,
<F as Future>::Item: Stream,
<F as Future>::Item: Debug,
<<F as Future>::Item as Stream>::Error == <F as Future>::Error,
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<F> Stream for FlattenStream<F> where
F: Future,
<F as Future>::Item: Stream,
<<F as Future>::Item as Stream>::Error == <F as Future>::Error,
[src]
impl<F> Stream for FlattenStream<F> where
F: Future,
<F as Future>::Item: Stream,
<<F as Future>::Item as Stream>::Error == <F as Future>::Error,
type Item = <<F as Future>::Item as Stream>::Item
Values yielded by the stream.
type Error = <<F as Future>::Item as Stream>::Error
Errors yielded by the stream.
fn poll_next(
&mut self,
cx: &mut Context
) -> Result<Async<Option<<FlattenStream<F> as Stream>::Item>>, <FlattenStream<F> as Stream>::Error>
[src]
fn poll_next(
&mut self,
cx: &mut Context
) -> Result<Async<Option<<FlattenStream<F> as Stream>::Item>>, <FlattenStream<F> as Stream>::Error>
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