pub trait CommandHandler<C>: Send + Syncwhere
C: Command,{
// Required method
fn handle(&self, command: &C) -> Result<(), MessengerError>;
}Expand description
Handles one command type. Register at most one per crate::Message::NAME.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".