[][src]Trait actix::fut::WrapFuture

pub trait WrapFuture<A> where
    A: Actor
{ type Future: ActorFuture<Output = Self::Output, Actor = A>; type Output; fn into_actor(self, a: &A) -> Self::Future; }

Helper trait that allows conversion of normal future into ActorFuture

Associated Types

type Future: ActorFuture<Output = Self::Output, Actor = A>

The future that this type can be converted into.

type Output

The item that the future may resolve with.

Loading content...

Required methods

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

Convert normal future to a ActorFuture

Loading content...

Implementors

impl<F: Future, A: Actor> WrapFuture<A> for F[src]

type Future = FutureWrap<F, A>

type Output = F::Output

Loading content...