Struct futures::future::AndThen [−][src]
#[must_use = "futures do nothing unless polled"]pub struct AndThen<Fut1, Fut2, F> { /* 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<Fut1, Fut2, F> Debug for AndThen<Fut1, Fut2, F> where
F: Debug,
Fut1: Debug,
Fut2: Debug,
[src]
impl<Fut1, Fut2, F> Debug for AndThen<Fut1, Fut2, F> where
F: Debug,
Fut1: Debug,
Fut2: 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<Fut1, Fut2, F> Future for AndThen<Fut1, Fut2, F> where
F: FnOnce(<Fut1 as TryFuture>::Ok) -> Fut2,
Fut1: TryFuture,
Fut2: TryFuture<Error = <Fut1 as TryFuture>::Error>,
[src]
impl<Fut1, Fut2, F> Future for AndThen<Fut1, Fut2, F> where
F: FnOnce(<Fut1 as TryFuture>::Ok) -> Fut2,
Fut1: TryFuture,
Fut2: TryFuture<Error = <Fut1 as TryFuture>::Error>,
type Output = Result<<Fut2 as TryFuture>::Ok, <Fut2 as TryFuture>::Error>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<AndThen<Fut1, Fut2, F>>,
cx: &mut Context
) -> Poll<<AndThen<Fut1, Fut2, F> as Future>::Output>
[src]
fn poll(
self: PinMut<AndThen<Fut1, Fut2, F>>,
cx: &mut Context
) -> Poll<<AndThen<Fut1, Fut2, F> as Future>::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