Struct rtnetlink::QDiscHandle
source · pub struct QDiscHandle(/* private fields */);
Implementations§
source§impl QDiscHandle
impl QDiscHandle
pub fn new(handle: Handle) -> Self
sourcepub fn get(&mut self) -> QDiscGetRequest
pub fn get(&mut self) -> QDiscGetRequest
Retrieve the list of qdisc (equivalent to tc qdisc show
)
sourcepub fn add(&mut self, index: i32) -> QDiscNewRequest
pub fn add(&mut self, index: i32) -> QDiscNewRequest
Create a new qdisc, don’t replace if the object already exists.
( equivalent to tc qdisc add dev STRING
)
sourcepub fn change(&mut self, index: i32) -> QDiscNewRequest
pub fn change(&mut self, index: i32) -> QDiscNewRequest
Change the qdisc, the handle cannot be changed and neither can the parent.
In other words, change cannot move a node.
( equivalent to tc qdisc change dev STRING
)
sourcepub fn replace(&mut self, index: i32) -> QDiscNewRequest
pub fn replace(&mut self, index: i32) -> QDiscNewRequest
Replace existing matching qdisc, create qdisc if it doesn’t already exist.
( equivalent to tc qdisc replace dev STRING
)
sourcepub fn link(&mut self, index: i32) -> QDiscNewRequest
pub fn link(&mut self, index: i32) -> QDiscNewRequest
Performs a replace where the node must exist already.
( equivalent to tc qdisc link dev STRING
)
sourcepub fn del(&mut self, index: i32) -> QDiscDelRequest
pub fn del(&mut self, index: i32) -> QDiscDelRequest
Delete the qdisc ( equivalent to tc qdisc del dev STRING
)
Auto Trait Implementations§
impl Freeze for QDiscHandle
impl !RefUnwindSafe for QDiscHandle
impl Send for QDiscHandle
impl Sync for QDiscHandle
impl Unpin for QDiscHandle
impl !UnwindSafe for QDiscHandle
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