Trait neli::Size

source ·
pub trait Size {
    fn unpadded_size(&self) -> usize;

    fn padded_size(&self) -> usize { ... }
}
Expand description

A trait defining methods that apply to all netlink data structures related to sizing of data types.

Required Methods§

Size of the unpadded data structure. This will usually only be unaligned for variable length types like strings or byte buffers.

Provided Methods§

Get the size of of the payload and align it to the required netlink byte alignment.

Implementations on Foreign Types§

Implementors§