pub trait Handler<M>: ActorLikewhere
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§
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§
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.