pub trait LengthDelimitedDecoder: Debug {
type Error;
// Required methods
fn decode(src: &[u8]) -> Result<(usize, Self), Self::Error>
where Self: Sized;
fn decode_length_delimited(src: &[u8]) -> Result<(usize, Self), Self::Error>
where Self: Sized;
}Expand description
A type can be encode to a buffer.