pub enum Then<A, B, F> {
    First {
        fut1: A,
        data: Option<F>,
    },
    Second {
        fut2: B,
    },
    Empty,
}
Expand description

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

This is created by the ActorFuture::then method.

Variants

First

Fields

fut1: A
data: Option<F>

Second

Fields

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.