[][src]Struct netlink_packet_route::rtnl::neighbour::NeighbourHeader

pub struct NeighbourHeader {
    pub family: u8,
    pub ifindex: u32,
    pub state: u16,
    pub flags: u8,
    pub ntype: u8,
}

Neighbour headers have the following structure:

0                8                16              24               32
+----------------+----------------+----------------+----------------+
|     family     |                     padding                      |
+----------------+----------------+----------------+----------------+
|                             link index                            |
+----------------+----------------+----------------+----------------+
|              state              |     flags      |     ntype      |
+----------------+----------------+----------------+----------------+

NeighbourHeader exposes all these fields.

Fields

family: u8ifindex: u32state: u16

Neighbour cache entry state. It should be set to one of the NUD_* constants

flags: u8

Neighbour cache entry flags. It should be set to a combination of the NTF_* constants

ntype: u8

Neighbour cache entry type. It should be set to one of the NDA_* constants.

Trait Implementations

impl Clone for NeighbourHeader[src]

impl Debug for NeighbourHeader[src]

impl Default for NeighbourHeader[src]

impl Emitable for NeighbourHeader[src]

impl Eq for NeighbourHeader[src]

impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader[src]

impl PartialEq<NeighbourHeader> for NeighbourHeader[src]

impl StructuralEq for NeighbourHeader[src]

impl StructuralPartialEq for NeighbourHeader[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.