Struct futures::future::Flatten [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Flatten<A> where
A: Future,
<A as Future>::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 as Future>::Item: IntoFuture,
<<A as Future>::Item as IntoFuture>::Future: Debug,
[src]
impl<A> Debug for Flatten<A> where
A: Future + Debug,
<A as Future>::Item: IntoFuture,
<<A as Future>::Item as IntoFuture>::Future: 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<A> Future for Flatten<A> where
A: Future,
<A as Future>::Item: IntoFuture,
<<A as Future>::Item as IntoFuture>::Error: From<<A as Future>::Error>,
[src]
impl<A> Future for Flatten<A> where
A: Future,
<A as Future>::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
) -> Result<Async<<Flatten<A> as Future>::Item>, <Flatten<A> as Future>::Error>
[src]
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<Flatten<A> as Future>::Item>, <Flatten<A> as Future>::Error>
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more