[−][src]Struct futures_util::future::FlattenStream
#[must_use = "streams do nothing unless polled"]pub struct FlattenStream<Fut: Future> { /* 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<Fut> Debug for FlattenStream<Fut> where
Fut: Future + Debug,
Fut::Output: Debug,
[src]
impl<Fut> Debug for FlattenStream<Fut> where
Fut: Future + Debug,
Fut::Output: Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<Fut> Stream for FlattenStream<Fut> where
Fut: Future,
Fut::Output: Stream,
[src]
impl<Fut> Stream for FlattenStream<Fut> where
Fut: Future,
Fut::Output: Stream,
type Item = <Fut::Output as Stream>::Item
Values yielded by the stream.
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Self::Item>>
[src]
fn poll_next(self: PinMut<Self>, cx: &mut Context) -> Poll<Option<Self::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