Struct rtnetlink::TrafficFilterHandle
source · pub struct TrafficFilterHandle { /* private fields */ }
Implementations§
source§impl TrafficFilterHandle
impl TrafficFilterHandle
pub fn new(handle: Handle, ifindex: i32) -> Self
sourcepub fn get(&mut self) -> TrafficFilterGetRequest
pub fn get(&mut self) -> TrafficFilterGetRequest
Retrieve the list of filter (equivalent to
tc filter show dev <iface_name>
)
sourcepub fn add(&mut self) -> TrafficFilterNewRequest
pub fn add(&mut self) -> TrafficFilterNewRequest
Add a filter to a node, don’t replace if the object already exists.
( equivalent to tc filter add dev STRING
)
sourcepub fn change(&mut self) -> TrafficFilterNewRequest
pub fn change(&mut self) -> TrafficFilterNewRequest
Change the filter, the handle cannot be changed and neither can the parent.
In other words, change cannot move a node.
( equivalent to tc filter change dev STRING
)
sourcepub fn replace(&mut self) -> TrafficFilterNewRequest
pub fn replace(&mut self) -> TrafficFilterNewRequest
Replace existing matching filter, create filter if it doesn’t already exist.
( equivalent to tc filter replace dev STRING
)
Auto Trait Implementations§
impl Freeze for TrafficFilterHandle
impl !RefUnwindSafe for TrafficFilterHandle
impl Send for TrafficFilterHandle
impl Sync for TrafficFilterHandle
impl Unpin for TrafficFilterHandle
impl !UnwindSafe for TrafficFilterHandle
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