Struct futures::future::Then [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Then<A, B, F> where
A: Future,
B: IntoFuture, { /* fields omitted */ }
Future for the then
combinator, chaining computations on the end of
another future regardless of its outcome.
This is created by the Future::then
method.
Trait Implementations
impl<A, B, F> Debug for Then<A, B, F> where
A: Debug + Future,
B: Debug + IntoFuture,
F: Debug,
<B as IntoFuture>::Future: Debug,
[src]
impl<A, B, F> Debug for Then<A, B, F> where
A: Debug + Future,
B: Debug + IntoFuture,
F: Debug,
<B as IntoFuture>::Future: Debug,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<A, B, F> Future for Then<A, B, F> where
A: Future,
B: IntoFuture,
F: FnOnce(Result<<A as Future>::Item, <A as Future>::Error>) -> B,
[src]
impl<A, B, F> Future for Then<A, B, F> where
A: Future,
B: IntoFuture,
F: FnOnce(Result<<A as Future>::Item, <A as Future>::Error>) -> B,
type Item = <B as IntoFuture>::Item
A successful value
type Error = <B as IntoFuture>::Error
An error
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<B as IntoFuture>::Item>, <B as IntoFuture>::Error>
[src]
fn poll(
&mut self,
cx: &mut Context
) -> Result<Async<<B as IntoFuture>::Item>, <B as IntoFuture>::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