Struct futures_util::future::Flatten [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct Flatten<A> where
    A: Future,
    A::Item: IntoFuture
{ /* fields omitted */ }

Future for the flatten combinator.

This combinator turns a Future-of-a-Future into a single Future.

This is created by the Future::flatten method.

Trait Implementations

impl<A> Debug for Flatten<A> where
    A: Future + Debug,
    A::Item: IntoFuture,
    <<A as Future>::Item as IntoFuture>::Future: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<A> Future for Flatten<A> where
    A: Future,
    A::Item: IntoFuture,
    <<A as Future>::Item as IntoFuture>::Error: From<<A as Future>::Error>, 
[src]

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<A> Send for Flatten<A> where
    A: Send,
    <<A as Future>::Item as IntoFuture>::Future: Send

impl<A> Sync for Flatten<A> where
    A: Sync,
    <<A as Future>::Item as IntoFuture>::Future: Sync