Trait AsyncHandle

Source
pub trait AsyncHandle<T>
where Self: Actor + Send + 'static, T: Send + 'static,
{ // Required method fn async_handle( &mut self, value: T, ) -> impl Future<Output = impl Into<ActorCmdRes<Self::Cmd>>> + Send; }

Required Methods§

Source

fn async_handle( &mut self, value: T, ) -> impl Future<Output = impl Into<ActorCmdRes<Self::Cmd>>> + Send

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.

Implementors§

Source§

impl<T, Act> AsyncHandle<T> for Act
where Self: Actor + Handle<T> + Send + 'static, T: Send + 'static,