[][src]Struct neli::nl::Nlmsghdr

pub struct Nlmsghdr<T, P> {
    pub nl_len: u32,
    pub nl_type: T,
    pub nl_flags: Vec<NlmF>,
    pub nl_seq: u32,
    pub nl_pid: u32,
    pub nl_payload: P,
}

Top level netlink header and payload

Fields

nl_len: u32

Length of the netlink message

nl_type: T

Type of the netlink message

nl_flags: Vec<NlmF>

Flags indicating properties of the request or response

nl_seq: u32

Sequence number for netlink protocol

nl_pid: u32

ID of the netlink destination for requests and source for responses

nl_payload: P

Payload of netlink message

Methods

impl<T, P> Nlmsghdr<T, P> where
    T: NlType,
    P: Nl
[src]

pub fn new(
    nl_len: Option<u32>,
    nl_type: T,
    nl_flags: Vec<NlmF>,
    nl_seq: Option<u32>,
    nl_pid: Option<u32>,
    nl_payload: P
) -> Self
[src]

Create a new top level netlink packet with a payload

Trait Implementations

impl<T, P> Nl for Nlmsghdr<T, P> where
    T: NlType,
    P: Nl
[src]

fn asize(&self) -> usize[src]

The size of the binary representation of a struct - aligned to word size

impl<T: PartialEq, P: PartialEq> PartialEq<Nlmsghdr<T, P>> for Nlmsghdr<T, P>[src]

impl<T: Debug, P: Debug> Debug for Nlmsghdr<T, P>[src]

Auto Trait Implementations

impl<T, P> Send for Nlmsghdr<T, P> where
    P: Send,
    T: Send

impl<T, P> Sync for Nlmsghdr<T, P> where
    P: Sync,
    T: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]