pub trait Handler<M: Message>: Actor {
// Required method
async fn handle(
&self,
myself: &Mailbox<Self>,
message: M,
state: &mut Self::State,
) -> Result<(), Self::Error>;
}Expand description
Handles messages of type M for an actor.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".