Struct rtnetlink::RuleHandle
source · pub struct RuleHandle(/* private fields */);
Implementations§
source§impl RuleHandle
impl RuleHandle
pub fn new(handle: Handle) -> Self
sourcepub fn get(&self, ip_version: IpVersion) -> RuleGetRequest
pub fn get(&self, ip_version: IpVersion) -> RuleGetRequest
Retrieve the list of route rule entries (equivalent to ip rule show
)
sourcepub fn add(&self) -> RuleAddRequest
pub fn add(&self) -> RuleAddRequest
Add a route rule entry (equivalent to ip rule add
)
sourcepub fn del(&self, rule: RuleMessage) -> RuleDelRequest
pub fn del(&self, rule: RuleMessage) -> RuleDelRequest
Delete the given route rule entry (equivalent to ip rule del
)
Auto Trait Implementations§
impl Freeze for RuleHandle
impl !RefUnwindSafe for RuleHandle
impl Send for RuleHandle
impl Sync for RuleHandle
impl Unpin for RuleHandle
impl !UnwindSafe for RuleHandle
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