Trait actix::fut::future::WrapFuture
source · pub trait WrapFuture<A>where
A: Actor,{
type Future: ActorFuture<A>;
// Required method
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<A>
type Future: ActorFuture<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