Struct actix::fut::Map [−][src]
pub struct Map<A, F> where
A: ActorFuture, { /* fields omitted */ }
Expand description
Future for the map
combinator, changing the type of a future.
This is created by the ActorFuture::map
method.
Trait Implementations
impl<U, A, F> ActorFuture for Map<A, F> where
A: ActorFuture,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> U,
impl<U, A, F> ActorFuture for Map<A, F> where
A: ActorFuture,
F: FnOnce(A::Output, &mut A::Actor, &mut <A::Actor as Actor>::Context) -> U,
fn poll(
self: Pin<&mut Self>,
act: &mut Self::Actor,
ctx: &mut <A::Actor as Actor>::Context,
task: &mut Context<'_>
) -> Poll<Self::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
Auto Trait Implementations
impl<A, F> RefUnwindSafe for Map<A, F> where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> UnwindSafe for Map<A, F> where
A: UnwindSafe,
F: 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.