Struct rtnetlink::RouteHeader [−][src]
pub struct RouteHeader { pub address_family: u8, pub destination_length: u8, pub source_length: u8, pub tos: u8, pub table: RouteTable, pub protocol: RouteProtocol, pub scope: RouteScope, pub kind: RouteKind, pub flags: RouteFlags, }
Fields
address_family: u8
Address family of the route
destination_length: u8
Length of destination
source_length: u8
Length of source
tos: u8
TOS filter
table: RouteTable
The routing table ID
protocol: RouteProtocol
The routing protocol
scope: RouteScope
Distance to the destination
kind: RouteKind
Route type
flags: RouteFlags
Trait Implementations
impl Debug for RouteHeader
[src]
impl Debug for RouteHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RouteHeader
[src]
impl PartialEq for RouteHeader
fn eq(&self, other: &RouteHeader) -> bool
[src]
fn eq(&self, other: &RouteHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RouteHeader) -> bool
[src]
fn ne(&self, other: &RouteHeader) -> bool
This method tests for !=
.
impl Eq for RouteHeader
[src]
impl Eq for RouteHeader
impl Hash for RouteHeader
[src]
impl Hash for RouteHeader
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for RouteHeader
[src]
impl Clone for RouteHeader
fn clone(&self) -> RouteHeader
[src]
fn clone(&self) -> RouteHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RouteHeader> for RouteBuffer<&'a T>
[src]
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RouteHeader> for RouteBuffer<&'a T>
fn parse(&self) -> Result<RouteHeader>
[src]
fn parse(&self) -> Result<RouteHeader>
Deserialize the current type.
impl Emitable for RouteHeader
[src]
impl Emitable for RouteHeader
Auto Trait Implementations
impl Send for RouteHeader
impl Send for RouteHeader
impl Sync for RouteHeader
impl Sync for RouteHeader