pub trait FutureInterop<A: Actor>: Future + Sized {
// Required method
fn interop_actor(self, actor: &A) -> FutureInteropWrap<A, Self>;
// Provided method
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§
Sourcefn 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§
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.