Struct netlink_packet_route::neighbour::NeighbourHeader
source · pub struct NeighbourHeader {
pub family: AddressFamily,
pub ifindex: u32,
pub state: NeighbourState,
pub flags: Vec<NeighbourFlag>,
pub kind: RouteType,
}
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: AddressFamily
§ifindex: u32
§state: NeighbourState
Neighbour cache entry state.
flags: Vec<NeighbourFlag>
Neighbour cache entry flags. It should be set to a combination
of the NTF_*
constants
kind: RouteType
Neighbour cache entry type. It should be set to one of the
NDA_*
constants.
Trait Implementations§
source§impl Clone for NeighbourHeader
impl Clone for NeighbourHeader
source§fn clone(&self) -> NeighbourHeader
fn clone(&self) -> NeighbourHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NeighbourHeader
impl Debug for NeighbourHeader
source§impl Default for NeighbourHeader
impl Default for NeighbourHeader
source§fn default() -> NeighbourHeader
fn default() -> NeighbourHeader
Returns the “default value” for a type. Read more
source§impl Emitable for NeighbourHeader
impl Emitable for NeighbourHeader
source§impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader
source§fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &NeighbourMessageBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for NeighbourHeader
impl PartialEq for NeighbourHeader
source§fn 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 ==
.impl Eq 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more