[−][src]Struct netlink_packet_route::rtnl::neighbour::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: u8
ifindex: u32
state: 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]
pub fn clone(&self) -> NeighbourHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NeighbourHeader
[src]
impl Default for NeighbourHeader
[src]
pub fn default() -> NeighbourHeader
[src]
impl Emitable for NeighbourHeader
[src]
impl Eq for NeighbourHeader
[src]
impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
[src]
pub fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
[src]
impl PartialEq<NeighbourHeader> for NeighbourHeader
[src]
pub fn eq(&self, other: &NeighbourHeader) -> bool
[src]
pub fn ne(&self, other: &NeighbourHeader) -> bool
[src]
impl StructuralEq for NeighbourHeader
[src]
impl StructuralPartialEq for NeighbourHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for NeighbourHeader
[src]
impl Send for NeighbourHeader
[src]
impl Sync for NeighbourHeader
[src]
impl Unpin for NeighbourHeader
[src]
impl UnwindSafe for NeighbourHeader
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,