[][src]Trait uapi::NlmsgHeader

pub trait NlmsgHeader: Sized {
    pub fn len(&self) -> Result<usize>;
pub fn set_len(&mut self, len: usize) -> Result<()>; }
👎 Deprecated:

beta features are subject to change at any time

The general shape of a header of a netlink message

Note that this is not the same as c::nlmsghdr.

See also the crate documentation.

Required methods

pub fn len(&self) -> Result<usize>[src]

👎 Deprecated:

beta features are subject to change at any time

Returns the length of the padded header + payload

This function returns an error if the length cannot be converted to usize without truncation.

pub fn set_len(&mut self, len: usize) -> Result<()>[src]

👎 Deprecated:

beta features are subject to change at any time

Sets the length of the padded header + payload

This function returns an error if the length cannot be converted to the internal length type without truncation.

Loading content...

Implementations on Foreign Types

impl NlmsgHeader for ()[src]

Loading content...

Implementors

impl NlmsgHeader for nlattr[src]

impl NlmsgHeader for nlmsghdr[src]

Loading content...