Trait actix_interop::FutureInterop
source · [−]pub trait FutureInterop<A: Actor>: Future + Sized {
fn interop_actor(self, actor: &A) -> FutureInteropWrap<A, Self>;
fn interop_actor_boxed(
self,
actor: &A
) -> ResponseActFuture<A, Self::Output>
where
Self: 'static,
{ ... }
}
Expand description
Extension trait implemented for all futures. Import this trait to bring the
interop_actor
and
interop_actor_boxed
methods into scope.
Required Methods
fn interop_actor(self, actor: &A) -> FutureInteropWrap<A, Self>
fn interop_actor(self, actor: &A) -> FutureInteropWrap<A, Self>
Convert a future using the with_ctx
or critical_section
methods into an ActorFuture.
Provided Methods
fn interop_actor_boxed(self, actor: &A) -> ResponseActFuture<A, Self::Output> where
Self: 'static,
fn interop_actor_boxed(self, actor: &A) -> ResponseActFuture<A, Self::Output> where
Self: 'static,
Convert a future using the with_ctx
or critical_section
methods into a boxed
ActorFuture.