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: RuleFlags,
}
Fields§
§family: AddressFamily
§dst_len: u8
§src_len: u8
§tos: u8
§table: u8
§action: RuleAction
§flags: RuleFlags
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
impl Eq for RuleHeader
impl StructuralPartialEq for RuleHeader
Auto Trait Implementations§
impl Freeze for RuleHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)