pub struct Handle(_);
Implementations§
source§impl Handle
impl Handle
pub fn request(
&mut self,
message: NetlinkMessage<RtnlMessage>
) -> Result<impl Stream<Item = NetlinkMessage<RtnlMessage>>, Error>
pub fn notify(&mut self, msg: NetlinkMessage<RtnlMessage>) -> Result<(), Error>
sourcepub fn link(&self) -> LinkHandle
pub fn link(&self) -> LinkHandle
Create a new handle, specifically for link requests (equivalent to ip link
commands)
sourcepub fn address(&self) -> AddressHandle
pub fn address(&self) -> AddressHandle
Create a new handle, specifically for address requests (equivalent to ip addr
commands)
sourcepub fn route(&self) -> RouteHandle
pub fn route(&self) -> RouteHandle
Create a new handle, specifically for routing table requests (equivalent to ip route
commands)
sourcepub fn rule(&self) -> RuleHandle
pub fn rule(&self) -> RuleHandle
Create a new handle, specifically for routing rule requests (equivalent to ip rule
commands)
sourcepub fn neighbours(&self) -> NeighbourHandle
pub fn neighbours(&self) -> NeighbourHandle
Create a new handle, specifically for routing neighbours requests (equivalent to ip neighbour
commands)
sourcepub fn qdisc(&self) -> QDiscHandle
pub fn qdisc(&self) -> QDiscHandle
Create a new handle, specifically for traffic control qdisc requests
(equivalent to tc qdisc show
commands)
sourcepub fn traffic_class(&self, ifindex: i32) -> TrafficClassHandle
pub fn traffic_class(&self, ifindex: i32) -> TrafficClassHandle
Create a new handle, specifically for traffic control class requests
(equivalent to tc class show dev <interface_name>
commands)
sourcepub fn traffic_filter(&self, ifindex: i32) -> TrafficFilterHandle
pub fn traffic_filter(&self, ifindex: i32) -> TrafficFilterHandle
Create a new handle, specifically for traffic control filter requests
(equivalent to tc filter show dev <interface_name>
commands)
sourcepub fn traffic_chain(&self, ifindex: i32) -> TrafficChainHandle
pub fn traffic_chain(&self, ifindex: i32) -> TrafficChainHandle
Create a new handle, specifically for traffic control chain requests
(equivalent to tc chain show dev <interface_name>
commands)