PushOpNewchainDoRequest

Struct PushOpNewchainDoRequest 

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

Get / dump tc chain information.

Implementations§

Source§

impl<Prev: Rec> PushOpNewchainDoRequest<Prev>

Source

pub fn new(prev: Prev, header: &PushTcmsg) -> 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

Selector attribute 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 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 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_clsact(self) -> Self

Selector attribute 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 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 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 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 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 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 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 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 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 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 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

Selector attribute 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_ingress(self) -> Self

Selector attribute 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

pub fn nested_options_mq(self) -> Self

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

Source

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

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

Source

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

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

Source

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

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

Source

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

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

Source

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

Selector attribute 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: &PushTcFifoQopt, ) -> Self

Selector attribute 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

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

Source

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

Selector attribute 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 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

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

Source

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

Selector attribute 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 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 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 is inserted automatically. At most one sub-message attribute is expected per attribute set.

Source

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

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

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Prev: Rec> Rec for PushOpNewchainDoRequest<Prev>

Source§

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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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