Skip to main content

PushAttrs

Struct PushAttrs 

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

Implementations§

Source§

impl<Prev: Pusher> PushAttrs<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_basic(self) -> PushBasicAttrs<PushDummy<Prev>>

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

Source

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

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

Source

pub fn nested_options_bfifo(self, fixed_header: &TcFifoQopt) -> Self

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

Source

pub fn nested_options_cake(self) -> PushCakeAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_cbs(self) -> PushCbsAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_cgroup(self) -> PushCgroupAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_choke(self) -> PushChokeAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_clsact(self) -> Self

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

Source

pub fn nested_options_codel(self) -> PushCodelAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_drr(self) -> PushDrrAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_dualpi2(self) -> PushDualpi2Attrs<PushDummy<Prev>>

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

Source

pub fn nested_options_etf(self) -> PushEtfAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_ets(self) -> PushEtsAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_flow(self) -> PushFlowAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_flower(self) -> PushFlowerAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_fq(self) -> PushFqAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_fq_codel(self) -> PushFqCodelAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_fq_pie(self) -> PushFqPieAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_fw(self) -> PushFwAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_gred(self) -> PushGredAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_hfsc(self, fixed_header: &TcHfscQopt) -> Self

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

Source

pub fn nested_options_hhf(self) -> PushHhfAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_htb(self) -> PushHtbAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_ingress(self) -> Self

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

Source

pub fn nested_options_matchall(self) -> PushMatchallAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_mq(self) -> Self

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

Source

pub fn nested_options_mqprio(self, fixed_header: &TcMqprioQopt) -> Self

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

Source

pub fn nested_options_multiq(self, fixed_header: &TcMultiqQopt) -> Self

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

Source

pub fn nested_options_netem( self, fixed_header: &TcNetemQopt, ) -> PushNetemAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_pfifo(self, fixed_header: &TcFifoQopt) -> Self

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

Source

pub fn nested_options_pfifo_fast(self, fixed_header: &TcPrioQopt) -> Self

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

Source

pub fn nested_options_pfifo_head_drop(self, fixed_header: &TcFifoQopt) -> Self

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

Source

pub fn nested_options_pie(self) -> PushPieAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_plug(self, fixed_header: &TcPlugQopt) -> Self

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

Source

pub fn nested_options_prio(self, fixed_header: &TcPrioQopt) -> Self

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

Source

pub fn nested_options_qfq(self) -> PushQfqAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_red(self) -> PushRedAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_route(self) -> PushRouteAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_sfb(self, fixed_header: &TcSfbQopt) -> Self

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

Source

pub fn nested_options_sfq(self, fixed_header: &TcSfqQoptV1) -> Self

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

Source

pub fn nested_options_taprio(self) -> PushTaprioAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_tbf(self) -> PushTbfAttrs<PushDummy<Prev>>

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

Source

pub fn nested_options_u32(self) -> PushU32Attrs<PushDummy<Prev>>

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

Source

pub fn push_stats(self, value: TcStats) -> Self

Source

pub fn nested_xstats_cake(self) -> PushCakeStatsAttrs<PushDummy<Prev>>

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

Source

pub fn nested_xstats_choke(self, fixed_header: &TcChokeXstats) -> Self

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

Source

pub fn nested_xstats_codel(self, fixed_header: &TcCodelXstats) -> Self

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

Source

pub fn nested_xstats_dualpi2(self, fixed_header: &TcDualpi2Xstats) -> Self

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

Source

pub fn nested_xstats_fq(self, fixed_header: &TcFqQdStats) -> Self

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

Source

pub fn nested_xstats_fq_codel(self, fixed_header: &TcFqCodelXstats) -> Self

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

Source

pub fn nested_xstats_fq_pie(self, fixed_header: &TcFqPieXstats) -> Self

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

Source

pub fn nested_xstats_hhf(self, fixed_header: &TcHhfXstats) -> Self

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

Source

pub fn nested_xstats_pie(self, fixed_header: &TcPieXstats) -> Self

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

Source

pub fn nested_xstats_red(self, fixed_header: &TcRedXstats) -> Self

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

Source

pub fn nested_xstats_sfb(self, fixed_header: &TcSfbXstats) -> Self

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

Source

pub fn nested_xstats_sfq(self, fixed_header: &TcSfqXstats) -> Self

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

Source

pub fn push_rate(self, value: GnetEstimator) -> Self

Source

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

Source

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

Source

pub fn nested_stab(self) -> PushTcaStabAttrs<Self>

Source

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

Source

pub fn push_dump_invisible(self, value: ()) -> Self

Source

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

Source

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

Source

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

Source

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

Source

pub fn push_dump_flags(self, value: BuiltinBitfield32) -> Self

Source

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

Source

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

Trait Implementations§

Source§

impl<Prev: Pusher> Drop for PushAttrs<Prev>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl<Prev: Pusher> Pusher for PushAttrs<Prev>

Source§

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

Source§

fn as_vec(&self) -> &Vec<u8>

Source§

fn as_rec(&self) -> &Vec<u8>

👎Deprecated:

Use .as_vec() instead (rec -> vec)

Source§

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

👎Deprecated:

Use .as_vec_mut() instead (rec -> vec)

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<Prev> UnsafeUnpin for PushAttrs<Prev>
where Prev: UnsafeUnpin,

§

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