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
Show fields
Fields of First
fut1: A
data: Option<F>
Trait Implementations
impl<A, B, F, Act> ActorFuture<Act> for AndThen<A, B, F> where
A: ActorTryFuture<Act>,
B: ActorTryFuture<Act, Error = A::Error>,
F: FnOnce(A::Ok, &mut Act, &mut Act::Context) -> B,
Act: Actor,
[src]
impl<A, B, F, Act> ActorFuture<Act> for AndThen<A, B, F> where
A: ActorTryFuture<Act>,
B: ActorTryFuture<Act, Error = A::Error>,
F: FnOnce(A::Ok, &mut Act, &mut Act::Context) -> B,
Act: Actor,
[src]Auto Trait Implementations
impl<A, B, F> RefUnwindSafe for AndThen<A, B, F> where
A: RefUnwindSafe,
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, B, F> UnwindSafe for AndThen<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