Trait neli::ToBytes

source ·
pub trait ToBytes: Debug {
    fn to_bytes(&self, buffer: &mut Cursor<Vec<u8>>) -> Result<(), SerError>;

    fn pad(&self, buffer: &mut Cursor<Vec<u8>>) -> Result<(), SerError> { ... }
}
Expand description

A trait defining a netlink data structure’s conversion to a byte buffer.

Required Methods§

Takes a byte buffer and serializes the data structure into it.

Provided Methods§

Pad a netlink message to the appropriate alignment.

Implementations on Foreign Types§

Implementors§