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]
A: Future + Debug,
A::Item: IntoFuture,
<<A as Future>::Item as IntoFuture>::Future: Debug,
fn fmt(&self, fmt: &mut Formatter) -> Result
[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: Future,
A::Item: IntoFuture,
<<A as Future>::Item as IntoFuture>::Error: From<<A as Future>::Error>,
type Item = <<A as Future>::Item as IntoFuture>::Item
A successful value
type Error = <<A as Future>::Item as IntoFuture>::Error
An error
fn poll(&mut self, cx: &mut Context) -> Poll<Self::Item, Self::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