Struct rtnetlink::RuleHandle
source · [−]pub struct RuleHandle(_);Implementations
sourceimpl 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 !RefUnwindSafe for RuleHandle
impl Send for RuleHandle
impl Sync for RuleHandle
impl Unpin for RuleHandle
impl !UnwindSafe for RuleHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more