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.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".