Enum actix::fut::future::Then [−][src]
#[must_use = "futures do nothing unless polled"] 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
Show fields
Fields of First
fut1: A
data: Option<F>
Trait Implementations
impl<A, B, F, Act> ActorFuture<Act> for Then<A, B, F> where
A: ActorFuture<Act>,
B: ActorFuture<Act>,
F: FnOnce(A::Output, &mut Act, &mut Act::Context) -> B,
Act: Actor,
[src]
impl<A, B, F, Act> ActorFuture<Act> for Then<A, B, F> where
A: ActorFuture<Act>,
B: ActorFuture<Act>,
F: FnOnce(A::Output, &mut Act, &mut Act::Context) -> B,
Act: Actor,
[src]Auto Trait Implementations
impl<A, B, F> RefUnwindSafe for Then<A, B, F> where
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, B, F> UnwindSafe for Then<A, B, F> where
A: UnwindSafe,
B: UnwindSafe,
F: UnwindSafe,
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
impl<A, F, T, E> ActorTryFuture<A> for F where
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
A: Actor,
[src]
impl<A, F, T, E> ActorTryFuture<A> for F where
F: ActorFuture<A, Output = Result<T, E>> + ?Sized,
A: Actor,
[src]Mutably borrows from an owned value. Read more