Struct actix::fut::FutureResult [−][src]
pub struct FutureResult<T, E, A> { /* fields omitted */ }
Expand description
A future representing a value that is immediately ready.
Created by the result
function.
Trait Implementations
The type of value that this future will resolved with if it is successful. Read more
type Actor = A
type Actor = A
The actor within which this future runs
fn poll(
self: Pin<&mut Self>,
_: &mut Self::Actor,
_: &mut <Self::Actor as Actor>::Context,
_: &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
impl<'pin, T, E, A> Unpin for FutureResult<T, E, A> where
__FutureResult<'pin, T, E, A>: Unpin,
Auto Trait Implementations
impl<T, E, A> RefUnwindSafe for FutureResult<T, E, A> where
A: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E, A> Send for FutureResult<T, E, A> where
A: Send,
E: Send,
T: Send,
impl<T, E, A> Sync for FutureResult<T, E, A> where
A: Sync,
E: Sync,
T: Sync,
impl<T, E, A> UnwindSafe for FutureResult<T, E, A> where
A: UnwindSafe,
E: UnwindSafe,
T: 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.