Trait WithHandle

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

Required Methods§

Source

fn with_handle( self, actor: &mut Act, ) -> impl Future<Output = impl Into<ActorCmdRes<Act::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<Act, T> WithHandle<Act> for T
where Act: Actor + Send + 'static + AsyncHandle<T>, T: Send + 'static,