pub trait Decoder: Send + 'static { type Item: Send + 'static; // Required method fn decode(&mut self, buf: &[u8]) -> Result<Self::Item>; }
The decoder that can decode a message
The message type
Decode a message from buffer