1
2
3
4
5
6
7
use std::io;

pub trait Decode {
    fn decode(buf: &[u8]) -> crate::Result<Self>
    where
        Self: Sized;
}