Trait Handler
messagebus
pub trait Handler<M: Message>: Send + Sync { fn handle(&self, msg: M, bus: &Bus) -> Result<()>; fn sync(&self, _bus: &Bus) -> Result<()> { ... } }
fn handle(&self, msg: M, bus: &Bus) -> Result<()>
fn sync(&self, _bus: &Bus) -> Result<()>