pub struct PushCaps<Prev: Pusher> { /* private fields */ }Available on crate feature
net-shaper only.Implementations§
Source§impl<Prev: Pusher> PushCaps<Prev>
impl<Prev: Pusher> PushCaps<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_ifindex(self, value: u32) -> Self
pub fn push_ifindex(self, value: u32) -> Self
Interface index queried for shapers capabilities.
Sourcepub fn push_scope(self, value: u32) -> Self
pub fn push_scope(self, value: u32) -> Self
The scope to which the queried capabilities apply.
Associated type: Scope (enum)
Sourcepub fn push_support_metric_bps(self, value: ()) -> Self
pub fn push_support_metric_bps(self, value: ()) -> Self
The device accepts 'bps' metric for bw-min, bw-max and burst.
Sourcepub fn push_support_metric_pps(self, value: ()) -> Self
pub fn push_support_metric_pps(self, value: ()) -> Self
The device accepts 'pps' metric for bw-min, bw-max and burst.
Sourcepub fn push_support_nesting(self, value: ()) -> Self
pub fn push_support_nesting(self, value: ()) -> Self
The device supports nesting shaper belonging to this scope below 'node' scoped shapers. Only 'queue' and 'node' scope can have flag 'support-nesting'.
Sourcepub fn push_support_bw_min(self, value: ()) -> Self
pub fn push_support_bw_min(self, value: ()) -> Self
The device supports a minimum guaranteed B/W.
Sourcepub fn push_support_bw_max(self, value: ()) -> Self
pub fn push_support_bw_max(self, value: ()) -> Self
The device supports maximum B/W shaping.
Sourcepub fn push_support_burst(self, value: ()) -> Self
pub fn push_support_burst(self, value: ()) -> Self
The device supports a maximum burst size.
Sourcepub fn push_support_priority(self, value: ()) -> Self
pub fn push_support_priority(self, value: ()) -> Self
The device supports priority scheduling.
Sourcepub fn push_support_weight(self, value: ()) -> Self
pub fn push_support_weight(self, value: ()) -> Self
The device supports weighted round robin scheduling.
Trait Implementations§
Auto Trait Implementations§
impl<Prev> Freeze for PushCaps<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushCaps<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushCaps<Prev>where
Prev: Send,
impl<Prev> Sync for PushCaps<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushCaps<Prev>where
Prev: Unpin,
impl<Prev> UnsafeUnpin for PushCaps<Prev>where
Prev: UnsafeUnpin,
impl<Prev> UnwindSafe for PushCaps<Prev>where
Prev: UnwindSafe,
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