pub trait MessageHandler: Any {
// Required methods
fn id(&self) -> Ustr;
fn handle(&self, message: &dyn Any);
fn as_any(&self) -> &dyn Any;
}
pub trait MessageHandler: Any {
// Required methods
fn id(&self) -> Ustr;
fn handle(&self, message: &dyn Any);
fn as_any(&self) -> &dyn Any;
}