Trait uapi::NlmsgHeaderExt

source ·
pub trait NlmsgHeaderExt: NlmsgHeader + Sealed {
    // Provided method
    fn read<'a>(buf: &mut &'a [u8]) -> Result<(usize, Self, &'a [u8])>
       where Self: Pod { ... }
}
👎Deprecated: beta features are subject to change at any time
Expand description

Extension trait for netlink message headers

See also the crate documentation.

Provided Methods§

source

fn read<'a>(buf: &mut &'a [u8]) -> Result<(usize, Self, &'a [u8])>
where Self: Pod,

👎Deprecated: beta features are subject to change at any time

Reads a header plus payload from a netlink message

Returns the space consumed, the header, and the payload.

Object Safety§

This trait is not object safe.

Implementors§