Trait neli::ToBytes[][src]

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