Decoder

Trait Decoder 

Source
pub trait Decoder: Send + 'static {
    type Item: Send + 'static;

    // Required method
    fn decode(&mut self, buf: &[u8]) -> Result<Self::Item>;
}
Expand description

The decoder that can decode a message

Required Associated Types§

Source

type Item: Send + 'static

The message type

Required Methods§

Source

fn decode(&mut self, buf: &[u8]) -> Result<Self::Item>

Decode a message from buffer

Implementors§