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]

[src]

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]

Values yielded by the stream.

Errors yielded by the stream.

[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<F> Send for FlattenStream<F> where
    F: Send,
    <F as Future>::Item: Send

impl<F> Sync for FlattenStream<F> where
    F: Sync,
    <F as Future>::Item: Sync