nautilus_common::msgbus::handler

Trait MessageHandler

Source
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;
}

Required Methods§

Source

fn id(&self) -> Ustr

Source

fn handle(&self, message: &dyn Any)

Source

fn handle_response(&self, resp: DataResponse)

Source

fn handle_data(&self, data: Data)

Source

fn as_any(&self) -> &dyn Any

Implementors§