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

pub struct Ifinfomsg {
    pub ifi_family: RtAddrFamily,
    pub ifi_type: Arphrd,
    pub ifi_index: c_int,
    pub ifi_flags: Vec<Iff>,
    pub rtattrs: Rtattrs<Ifla, 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: Rtattrs<Ifla, Vec<u8>>

Payload of Rtattrs

Implementations

impl Ifinfomsg[src]

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

Create a fully initialized interface info struct

Trait Implementations

impl Debug for Ifinfomsg[src]

impl Nl for Ifinfomsg[src]

Auto Trait Implementations

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.