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

#[must_use = "futures do nothing unless polled"]
pub struct Flatten<Fut> where
    Fut: Future,
    Fut::Output: Future
{ /* 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<Fut> Debug for Flatten<Fut> where
    Fut: Future + Debug,
    Fut::Output: Future + Debug
[src]

Formats the value using the given formatter. Read more

impl<Fut> Future for Flatten<Fut> where
    Fut: Future,
    Fut::Output: Future
[src]

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

The result of the Future.

🔬 This is a nightly-only experimental API. (futures_api)

futures in libcore are unstable

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

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