Struct actix::fut::Then [−][src]
pub struct Then<A, B, F: 'static> where
A: ActorFuture,
B: IntoActorFuture<Actor = A::Actor>, { /* fields omitted */ }
Expand description
Future for the then
combinator, chaining computations on the end of
another future regardless of its outcome.
This is created by the Future::then
method.
Trait Implementations
impl<A, B, F> ActorFuture for Then<A, B, F> where
A: ActorFuture,
B: IntoActorFuture<Actor = A::Actor>,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> B,
impl<A, B, F> ActorFuture for Then<A, B, F> where
A: ActorFuture,
B: IntoActorFuture<Actor = A::Actor>,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> B,
The type of value that this future will resolved with if it is successful. Read more
fn poll(
self: Pin<&mut Self>,
act: &mut A::Actor,
ctx: &mut <A::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<B::Output>
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
impl<'pin, A, B, F: 'static> Unpin for Then<A, B, F> where
A: ActorFuture,
B: IntoActorFuture<Actor = A::Actor>,
__Then<'pin, A, B, F>: Unpin,
impl<A, B, F: 'static> UnsafeUnpin for Then<A, B, F> where
A: ActorFuture,
B: IntoActorFuture<Actor = A::Actor>,
Auto Trait Implementations
impl<A, B, F> RefUnwindSafe for Then<A, B, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
<B as IntoActorFuture>::Future: RefUnwindSafe,
impl<A, B, F> UnwindSafe for Then<A, B, F> where
A: UnwindSafe,
F: UnwindSafe,
<B as IntoActorFuture>::Future: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Future = F
type Future = F
The future that this type can be converted into.
type Output = <F as ActorFuture>::Output
type Output = <F as ActorFuture>::Output
The item that the future may resolve with.
type Actor = <F as ActorFuture>::Actor
type Actor = <F as ActorFuture>::Actor
The actor within which this future runs
Consumes this object and produces a future.