pub trait CommandHandler<Msg> {
// Required method
fn execute_cmd(
&mut self,
conn: &Arc<Mutex<Connection>>,
msg: &Msg,
) -> Result<Msg>;
}
Expand description
Interface for handlers of protocol messages, responding to each message with a single instance of the same protocol message.