[−]Trait actix_web::actix::fut::WrapFuture
Helper trait that allows conversion of normal future into ActorFuture
Associated Types
type Future: ActorFuture
The future that this type can be converted into.
type Item
The item that the future may resolve with.
type Error
The error that the future may resolve with.
Required Methods
fn into_actor(self, a: &A) -> Self::Future
Convert normal future to a ActorFuture
Implementors
impl<F, A> WrapFuture<A> for F where
A: Actor,
F: Future,
impl<F, A> WrapFuture<A> for F where
A: Actor,
F: Future,
type Future = FutureWrap<F, A>
type Item = <F as Future>::Item
type Error = <F as Future>::Error
fn into_actor(self, &A) -> <F as WrapFuture<A>>::Future
fn into_actor(self, &A) -> <F as WrapFuture<A>>::Future