Struct futures::future::Flatten [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Flatten<Fut> where
Fut: Future,
<Fut as Future>::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 as Future>::Output: Future,
<Fut as Future>::Output: Debug, [src]
impl<Fut> Debug for Flatten<Fut> where
Fut: Future + Debug,
<Fut as Future>::Output: Future,
<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> Future for Flatten<Fut> where
Fut: Future,
<Fut as Future>::Output: Future, [src]
impl<Fut> Future for Flatten<Fut> where
Fut: Future,
<Fut as Future>::Output: Future, type Output = <<Fut as Future>::Output as Future>::Output
🔬 This is a nightly-only experimental API. (futures_api)
futures in libcore are unstable
The result of the Future.
fn poll(
self: PinMut<Flatten<Fut>>,
cx: &mut Context
) -> Poll<<Flatten<Fut> as Future>::Output>[src]
fn poll(
self: PinMut<Flatten<Fut>>,
cx: &mut Context
) -> Poll<<Flatten<Fut> as Future>::Output>🔬 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