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§

source

type Future: ActorFuture<A>

The future that this type can be converted into.

Required Methods§

source

fn into_actor(self, a: &A) -> Self::Future

Convert normal future to a ActorFuture

Implementors§

source§

impl<F: Future, A: Actor> WrapFuture<A> for F

§

type Future = FutureWrap<F, A>