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
sourceimpl Clone for RuleHeader
impl Clone for RuleHeader
sourcefn clone(&self) -> RuleHeader
fn clone(&self) -> RuleHeader
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 RuleHeader
impl Debug for RuleHeader
sourceimpl Default for RuleHeader
impl Default for RuleHeader
sourcefn default() -> RuleHeader
fn default() -> RuleHeader
Returns the “default value” for a type. Read more
sourceimpl Emitable for RuleHeader
impl Emitable for RuleHeader
sourceimpl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleMessageBuffer<&'a T>> for RuleHeader
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleMessageBuffer<&'a T>> for RuleHeader
sourcefn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &RuleMessageBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
sourceimpl PartialEq<RuleHeader> for RuleHeader
impl PartialEq<RuleHeader> for RuleHeader
sourcefn eq(&self, other: &RuleHeader) -> bool
fn eq(&self, other: &RuleHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RuleHeader) -> bool
fn ne(&self, other: &RuleHeader) -> bool
This method tests for !=
.
impl Eq for RuleHeader
impl StructuralEq for RuleHeader
impl StructuralPartialEq for RuleHeader
Auto Trait Implementations
impl RefUnwindSafe for RuleHeader
impl Send for RuleHeader
impl Sync for RuleHeader
impl Unpin for RuleHeader
impl UnwindSafe for RuleHeader
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