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.