[][src]Struct neli::rtnl::Ifinfomsg

pub struct Ifinfomsg<T> {
    pub ifi_family: RtAddrFamily,
    pub ifi_type: Arphrd,
    pub ifi_index: c_int,
    pub ifi_flags: Vec<Iff>,
    pub rtattrs: Vec<Rtattr<T, Vec<u8>>>,
    // some fields omitted
}

Struct representing interface information messages

Fields

ifi_family: RtAddrFamily

Interface address family

ifi_type: Arphrd

Interface type

ifi_index: c_int

Interface index

ifi_flags: Vec<Iff>

Interface flags

rtattrs: Vec<Rtattr<T, Vec<u8>>>

Payload of Rtattrs

Methods

impl<T> Ifinfomsg<T> where
    T: RtaType
[src]

pub fn new(
    ifi_family: RtAddrFamily,
    ifi_type: Arphrd,
    ifi_index: c_int,
    ifi_flags: Vec<Iff>,
    rtattrs: Vec<Rtattr<T, Vec<u8>>>
) -> Self
[src]

Create a fully initialized interface info struct

Trait Implementations

impl<T> Nl for Ifinfomsg<T> where
    T: RtaType
[src]

Auto Trait Implementations

impl<T> Send for Ifinfomsg<T> where
    T: Send

impl<T> Unpin for Ifinfomsg<T> where
    T: Unpin

impl<T> Sync for Ifinfomsg<T> where
    T: Sync

impl<T> UnwindSafe for Ifinfomsg<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Ifinfomsg<T> where
    T: RefUnwindSafe

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]