pub trait TypedDecoder {
type Item;
type Error;
// Required methods
fn decode(&self, data: Bytes) -> Result<Self::Item, Self::Error>;
fn decode_mut(&mut self, data: Bytes) -> Result<Self::Item, Self::Error>;
}Expand description
A decoder that decodes a specific type of message.