Struct rtnetlink::RuleHandle
source · pub struct RuleHandle(_);
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
)