Trait actix_web::actix::WrapFuture
source · pub trait WrapFuture<A>where
A: Actor,{
type Future: ActorFuture<Item = Self::Item, Error = Self::Error, Actor = A>;
type Item;
type Error;
fn into_actor(self, a: &A) -> Self::Future;
}
Expand description
Helper trait that allows conversion of normal future into ActorFuture
Required Associated Types
sourcetype Future: ActorFuture<Item = Self::Item, Error = Self::Error, Actor = A>
type Future: ActorFuture<Item = Self::Item, Error = Self::Error, Actor = A>
The future that this type can be converted into.
Required Methods
sourcefn into_actor(self, a: &A) -> Self::Future
fn into_actor(self, a: &A) -> Self::Future
Convert normal future to a ActorFuture