Struct futures::future::AndThen [−][src]
#[must_use = "futures do nothing unless polled"]pub struct AndThen<A, B, F> where
A: Future,
B: IntoFuture, { /* fields omitted */ }
Future for the and_then
combinator, chaining a computation onto the end of
another future which completes successfully.
This is created by the Future::and_then
method.
Trait Implementations
impl<A, B, F> Debug for AndThen<A, B, F> where
A: Debug + Future,
B: Debug + IntoFuture,
F: Debug,
<B as IntoFuture>::Future: Debug,
[src]
impl<A, B, F> Debug for AndThen<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 AndThen<A, B, F> where
A: Future,
B: IntoFuture<Error = <A as Future>::Error>,
F: FnOnce(<A as Future>::Item) -> B,
[src]
impl<A, B, F> Future for AndThen<A, B, F> where
A: Future,
B: IntoFuture<Error = <A as Future>::Error>,
F: FnOnce(<A as Future>::Item) -> 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