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