Struct futures::future::FlattenStream [−][src]
#[must_use = "streams do nothing unless polled"]pub struct FlattenStream<Fut> where
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 as Future>::Output: Debug,
[src]
impl<Fut> Debug for FlattenStream<Fut> where
Fut: Future + Debug,
<Fut as Future>::Output: Debug,
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<Fut> Stream for FlattenStream<Fut> where
Fut: Future,
<Fut as Future>::Output: Stream,
[src]
impl<Fut> Stream for FlattenStream<Fut> where
Fut: Future,
<Fut as Future>::Output: Stream,
type Item = <<Fut as Future>::Output as Stream>::Item
Values yielded by the stream.
fn poll_next(
self: PinMut<FlattenStream<Fut>>,
cx: &mut Context
) -> Poll<Option<<FlattenStream<Fut> as Stream>::Item>>
[src]
fn poll_next(
self: PinMut<FlattenStream<Fut>>,
cx: &mut Context
) -> Poll<Option<<FlattenStream<Fut> as Stream>::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