Struct netlink_packet_route::rtnl::NeighbourHeader
source · [−]pub struct NeighbourHeader {
pub family: u8,
pub ifindex: u32,
pub state: u16,
pub flags: u8,
pub ntype: u8,
}
Expand description
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
sourceimpl Clone for NeighbourHeader
impl Clone for NeighbourHeader
sourcefn clone(&self) -> NeighbourHeader
fn clone(&self) -> NeighbourHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NeighbourHeader
impl Debug for NeighbourHeader
sourceimpl Default for NeighbourHeader
impl Default for NeighbourHeader
sourcefn default() -> NeighbourHeader
fn default() -> NeighbourHeader
Returns the “default value” for a type. Read more
sourceimpl Emitable for NeighbourHeader
impl Emitable for NeighbourHeader
sourceimpl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
sourcefn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
sourceimpl PartialEq<NeighbourHeader> for NeighbourHeader
impl PartialEq<NeighbourHeader> for NeighbourHeader
sourcefn eq(&self, other: &NeighbourHeader) -> bool
fn eq(&self, other: &NeighbourHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NeighbourHeader) -> bool
fn ne(&self, other: &NeighbourHeader) -> bool
This method tests for !=
.
impl Eq for NeighbourHeader
impl StructuralEq for NeighbourHeader
impl StructuralPartialEq for NeighbourHeader
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more