PushActAttrs

Struct PushActAttrs 

Source
pub struct PushActAttrs<Prev: Rec> { /* private fields */ }
Available on crate feature tc only.

Implementations§

Source§

impl<Prev: Rec> PushActAttrs<Prev>

Source

pub fn new(prev: Prev) -> Self

Source

pub fn end_nested(self) -> Prev

Source

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

Source

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

Source

pub fn nested_options_bpf(self) -> PushActBpfAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_connmark(self) -> PushActConnmarkAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_csum(self) -> PushActCsumAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_ct(self) -> PushActCtAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_ctinfo(self) -> PushActCtinfoAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_gact(self) -> PushActGactAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_gate(self) -> PushActGateAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_ife(self) -> PushActIfeAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_mirred(self) -> PushActMirredAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_mpls(self) -> PushActMplsAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_nat(self) -> PushActNatAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_pedit(self) -> PushActPeditAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_police(self) -> PushPoliceAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_sample(self) -> PushActSampleAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_simple(self) -> PushActSimpleAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_skbedit(self) -> PushActSkbeditAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_skbmod(self) -> PushActSkbmodAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_tunnel_key(self) -> PushActTunnelKeyAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_vlan(self) -> PushActVlanAttrs<PushDummy<Prev>>

Selector attribute is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

Source

pub fn nested_stats(self) -> PushTcaStatsAttrs<Self>

Source

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

Source

pub fn push_flags(self, value: PushBuiltinBitfield32) -> Self

Source

pub fn push_hw_stats(self, value: PushBuiltinBitfield32) -> Self

Source

pub fn push_used_hw_stats(self, value: PushBuiltinBitfield32) -> Self

Source

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

Trait Implementations§

Source§

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

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Prev: Rec> Rec for PushActAttrs<Prev>

Source§

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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<Prev> UnwindSafe for PushActAttrs<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.