Struct netlink_packet_route::rtnl::rule::header::RuleHeader
source · pub struct RuleHeader {
pub family: u8,
pub dst_len: u8,
pub src_len: u8,
pub tos: u8,
pub table: u8,
pub action: u8,
pub flags: u32,
}
Fields§
§family: u8
Address family: one of the AF_*
constants.
dst_len: u8
§src_len: u8
§tos: u8
§table: u8
RT_TABLE_*
action: u8
FR_ACT_*
flags: u32
fib rule flags
Trait Implementations§
source§impl Clone for RuleHeader
impl Clone for RuleHeader
source§fn clone(&self) -> RuleHeader
fn clone(&self) -> RuleHeader
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 RuleHeader
impl Debug for RuleHeader
source§impl Default for RuleHeader
impl Default for RuleHeader
source§fn default() -> RuleHeader
fn default() -> RuleHeader
Returns the “default value” for a type. Read more
source§impl Emitable for RuleHeader
impl Emitable for RuleHeader
source§impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleMessageBuffer<&'a T>> for RuleHeader
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleMessageBuffer<&'a T>> for RuleHeader
source§fn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.