pub trait FromBytes<'a>: Sized + Debug {
fn from_bytes(buffer: &mut Cursor<&'a [u8]>) -> Result<Self, DeError>;
fn strip(buffer: &mut Cursor<&'a [u8]>) -> Result<(), DeError> { ... }
}
Expand description
A trait defining how to convert from a byte buffer to a netlink data structure.