PushOpDelruleDoRequest

Struct PushOpDelruleDoRequest 

Source
pub struct PushOpDelruleDoRequest<Prev: Rec> { /* private fields */ }
Available on crate feature rt-rule only.
Expand description

Remove an existing FIB rule

Implementations§

Source§

impl<Prev: Rec> PushOpDelruleDoRequest<Prev>

Source

pub fn new(prev: Prev, header: &PushFibRuleHdr) -> Self

Source

pub fn end_nested(self) -> Prev

Source

pub fn push_iifname(self, value: &CStr) -> Self

Source

pub fn push_iifname_bytes(self, value: &[u8]) -> Self

Source

pub fn push_goto(self, value: u32) -> Self

Source

pub fn push_priority(self, value: u32) -> Self

Source

pub fn push_fwmark(self, value: u32) -> Self

Source

pub fn push_flow(self, value: u32) -> Self

Source

pub fn push_tun_id(self, value: u64) -> Self

Source

pub fn push_suppress_ifgroup(self, value: u32) -> Self

Source

pub fn push_suppress_prefixlen(self, value: u32) -> Self

Source

pub fn push_table(self, value: u32) -> Self

Source

pub fn push_fwmask(self, value: u32) -> Self

Source

pub fn push_oifname(self, value: &CStr) -> Self

Source

pub fn push_oifname_bytes(self, value: &[u8]) -> Self

Source

pub fn push_l3mdev(self, value: u8) -> Self

Source

pub fn push_uid_range(self, value: PushFibRuleUidRange) -> Self

Source

pub fn push_protocol(self, value: u8) -> Self

Source

pub fn push_ip_proto(self, value: u8) -> Self

Source

pub fn push_sport_range(self, value: PushFibRulePortRange) -> Self

Source

pub fn push_dport_range(self, value: PushFibRulePortRange) -> Self

Source

pub fn push_dscp(self, value: u8) -> Self

Source

pub fn push_flowlabel(self, value: u32) -> Self

Source

pub fn push_flowlabel_mask(self, value: u32) -> Self

Source

pub fn push_sport_mask(self, value: u16) -> Self

Source

pub fn push_dport_mask(self, value: u16) -> Self

Source

pub fn push_dscp_mask(self, value: u8) -> Self

Trait Implementations§

Source§

impl<Prev: Rec> Drop for PushOpDelruleDoRequest<Prev>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Prev: Rec> Rec for PushOpDelruleDoRequest<Prev>

Source§

fn as_rec_mut(&mut self) -> &mut Vec<u8>

Auto Trait Implementations§

§

impl<Prev> Freeze for PushOpDelruleDoRequest<Prev>
where Prev: Freeze,

§

impl<Prev> RefUnwindSafe for PushOpDelruleDoRequest<Prev>
where Prev: RefUnwindSafe,

§

impl<Prev> Send for PushOpDelruleDoRequest<Prev>
where Prev: Send,

§

impl<Prev> Sync for PushOpDelruleDoRequest<Prev>
where Prev: Sync,

§

impl<Prev> Unpin for PushOpDelruleDoRequest<Prev>
where Prev: Unpin,

§

impl<Prev> UnwindSafe for PushOpDelruleDoRequest<Prev>
where Prev: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.