Struct futures_util::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: Debug, B: Debug, F: Debug> Debug for AndThen<A, B, F> where
    A: Future,
    B: IntoFuture,
    B::Future: Debug
[src]

[src]

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::Error>,
    F: FnOnce(A::Item) -> B, 
[src]

A successful value

An 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

Auto Trait Implementations

impl<A, B, F> Send for AndThen<A, B, F> where
    A: Send,
    F: Send,
    <B as IntoFuture>::Future: Send

impl<A, B, F> Sync for AndThen<A, B, F> where
    A: Sync,
    F: Sync,
    <B as IntoFuture>::Future: Sync