Struct netlink_packet_route::rule::RuleHeader
source · pub struct RuleHeader {
pub family: AddressFamily,
pub dst_len: u8,
pub src_len: u8,
pub tos: u8,
pub table: u8,
pub action: RuleAction,
pub flags: Vec<RuleFlag>,
}
Fields§
§family: AddressFamily
§dst_len: u8
§src_len: u8
§tos: u8
§table: u8
§action: RuleAction
§flags: Vec<RuleFlag>
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.
source§impl PartialEq for RuleHeader
impl PartialEq for RuleHeader
source§fn 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 ==
.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§
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