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]
impl<Fut> Debug for Flatten<Fut> where
Fut: Future + Debug,
Fut::Output: Future + Debug, fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<Fut> Future for Flatten<Fut> where
Fut: Future,
Fut::Output: Future, [src]
impl<Fut> Future for Flatten<Fut> where
Fut: Future,
Fut::Output: Future, type Output = <Fut::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<Self>, cx: &mut Context) -> Poll<Self::Output>[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::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