[−][src]Struct netlink_packet_route::rtnl::NeighbourHeader
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: u16Neighbour cache entry state. It should be set to one of the
NUD_* constants
flags: u8Neighbour cache entry flags. It should be set to a combination
of the NTF_* constants
ntype: u8Neighbour cache entry type. It should be set to one of the
NDA_* constants.
Trait Implementations
impl Clone for NeighbourHeader[src]
fn clone(&self) -> NeighbourHeader[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for NeighbourHeader[src]
impl Default for NeighbourHeader[src]
fn default() -> NeighbourHeader[src]
impl Emitable for NeighbourHeader[src]
impl Eq for NeighbourHeader[src]
impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader[src]
fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>[src]
impl PartialEq<NeighbourHeader> for NeighbourHeader[src]
fn eq(&self, other: &NeighbourHeader) -> bool[src]
fn ne(&self, other: &NeighbourHeader) -> bool[src]
impl StructuralEq for NeighbourHeader[src]
impl StructuralPartialEq for NeighbourHeader[src]
Auto Trait Implementations
impl RefUnwindSafe for NeighbourHeader
impl Send for NeighbourHeader
impl Sync for NeighbourHeader
impl Unpin for NeighbourHeader
impl UnwindSafe for NeighbourHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Emitable for T where
T: Nla, [src]
T: Nla,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,