pub(crate) trait MsgReply {
// Required method
fn reply(&mut self, msg: &[u8]) -> Option<Vec<u8>>;
}Expand description
Trait for an object that handle and incoming client message and return a server’s reply.
This is implemented for FnMut(&[u8]) -> Option<Vec<u8>> automatically.