Trait neli::FromBytes

source ·
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.

Required Methods§

Takes a byte buffer and returns the deserialized data structure.

Provided Methods§

Strip padding from a netlink message.

Implementations on Foreign Types§

Implementors§