Enum actix::fut::try_future::AndThen[][src]

#[must_use = "futures do nothing unless polled"]
pub enum AndThen<A, B, F> {
    First {
        fut1: A,
        data: Option<F>,
    },
    Second {
        fut2: B,
    },
    Empty,
}
Expand description

Future for the and_then combinator, chaining computations on the end of another actor future regardless of its outcome.

This is created by the ActorTryFuture::and_then method.

Variants

First
Show fields

Fields of First

fut1: Adata: Option<F>
Second
Show fields

Fields of Second

fut2: B
Empty

Trait Implementations

The type of value that this future will resolved with if it is successful. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Map this future’s result to a different type, returning a new future of the resulting type. Read more

Chain on a computation for when a future finished, passing the result of the future to the provided closure f. Read more

Add timeout to futures chain. Read more

Wrap the future in a Box, pinning it. Read more

The type of successful values yielded by this actor future

The type of failures yielded by this actor future

Poll this ActorTryFuture as if it were a ActorFuture. Read more

Executes another actor future after this one resolves successfully. The success value is passed to a closure to create this subsequent actor future. Read more

Maps this actor future’s success value to a different value. Read more

Maps this actor future’s error value to a different value. Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.