[][src]Struct neli::genl::Genlmsghdr

pub struct Genlmsghdr<C, T> {
    pub cmd: C,
    pub version: u8,
    // some fields omitted
}

Struct representing generic netlink header and payload

Fields

cmd: C

Generic netlink message command

version: u8

Version of generic netlink family protocol

Implementations

impl<C, T> Genlmsghdr<C, T> where
    C: Cmd,
    T: NlAttrType
[src]

pub fn new(cmd: C, version: u8, attrs: GenlBuffer<T, Buffer>) -> Self[src]

Create new generic netlink packet

impl<C, T> Genlmsghdr<C, T> where
    C: Cmd,
    T: NlAttrType
[src]

pub fn get_attr_handle(
    &self
) -> AttrHandle<'_, GenlBuffer<T, Buffer>, Nlattr<T, Buffer>>
[src]

Get handle for attribute parsing and traversal

pub fn get_attr_handle_mut(
    &mut self
) -> AttrHandleMut<'_, GenlBuffer<T, Buffer>, Nlattr<T, Buffer>>
[src]

Get handle for attribute mutable and traversal

Trait Implementations

impl<C: Debug, T: Debug> Debug for Genlmsghdr<C, T>[src]

impl<C, T> Nl for Genlmsghdr<C, T> where
    C: Cmd,
    T: NlAttrType
[src]

impl<C: PartialEq, T: PartialEq> PartialEq<Genlmsghdr<C, T>> for Genlmsghdr<C, T>[src]

impl<C, T> StructuralPartialEq for Genlmsghdr<C, T>[src]

Auto Trait Implementations

impl<C, T> RefUnwindSafe for Genlmsghdr<C, T> where
    C: RefUnwindSafe,
    T: RefUnwindSafe

impl<C, T> Send for Genlmsghdr<C, T> where
    C: Send,
    T: Send

impl<C, T> Sync for Genlmsghdr<C, T> where
    C: Sync,
    T: Sync

impl<C, T> Unpin for Genlmsghdr<C, T> where
    C: Unpin,
    T: Unpin

impl<C, T> UnwindSafe for Genlmsghdr<C, T> where
    C: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.