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]

Formats the value using the given formatter. Read more

impl<Fut> Stream for FlattenStream<Fut> where
    Fut: Future,
    <Fut as Future>::Output: Stream
[src]

Values yielded by the stream.

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<Fut> Send for FlattenStream<Fut> where
    Fut: Send,
    <Fut as Future>::Output: Send

impl<Fut> Sync for FlattenStream<Fut> where
    Fut: Sync,
    <Fut as Future>::Output: Sync