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)
Trait Implementations§
Source§impl Clone for RuleHandle
impl Clone for RuleHandle
Source§fn clone(&self) -> RuleHandle
fn clone(&self) -> RuleHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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