Handler

Trait Handler 

Source
pub trait Handler<M>: ActorLike
where M: SyncTrait,
{ type Reply: Send + Sync + 'static + FromError<<<<Self as ActorLike>::Channel as ActorChannel>::Sender as ActorSender<<<Self as ActorLike>::Channel as ActorChannel>::Message>>::Error> + FromError<RecvError> + FromError<ActorError> + ActorReply; // Required method fn handle<'a>( &'a mut self, ctx: Call<'a, Self, Self::Reply>, ev: M, ) -> impl Future<Output = Self::Reply> + use<'a, M, Self> + Send; }

Required Associated Types§

Source

type Reply: Send + Sync + 'static + FromError<<<<Self as ActorLike>::Channel as ActorChannel>::Sender as ActorSender<<<Self as ActorLike>::Channel as ActorChannel>::Message>>::Error> + FromError<RecvError> + FromError<ActorError> + ActorReply

Required Methods§

Source

fn handle<'a>( &'a mut self, ctx: Call<'a, Self, Self::Reply>, ev: M, ) -> impl Future<Output = Self::Reply> + use<'a, M, Self> + 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§