pub struct PushFibRuleHdr { /* private fields */ }Available on crate feature
rt-rule only.Implementations§
Source§impl PushFibRuleHdr
impl PushFibRuleHdr
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from other slice
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub const fn len() -> usize
pub fn family(&self) -> u8
pub fn set_family(&mut self, value: u8)
pub fn dst_len(&self) -> u8
pub fn set_dst_len(&mut self, value: u8)
pub fn src_len(&self) -> u8
pub fn set_src_len(&mut self, value: u8)
pub fn tos(&self) -> u8
pub fn set_tos(&mut self, value: u8)
pub fn table(&self) -> u8
pub fn set_table(&mut self, value: u8)
Sourcepub fn set_action(&mut self, value: u8)
pub fn set_action(&mut self, value: u8)
Associated type: “FrAct” (enum)
pub fn flags(&self) -> u32
pub fn set_flags(&mut self, value: u32)
Trait Implementations§
Source§impl Clone for PushFibRuleHdr
impl Clone for PushFibRuleHdr
Source§fn clone(&self) -> PushFibRuleHdr
fn clone(&self) -> PushFibRuleHdr
Returns a duplicate 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 PushFibRuleHdr
impl Debug for PushFibRuleHdr
Auto Trait Implementations§
impl Freeze for PushFibRuleHdr
impl RefUnwindSafe for PushFibRuleHdr
impl Send for PushFibRuleHdr
impl Sync for PushFibRuleHdr
impl Unpin for PushFibRuleHdr
impl UnwindSafe for PushFibRuleHdr
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