pub struct Handle(/* private fields */);Implementations§
Source§impl Handle
impl Handle
pub fn request( &mut self, message: NetlinkMessage<RouteNetlinkMessage>, ) -> Result<impl Stream<Item = NetlinkMessage<RouteNetlinkMessage>>, Error>
pub fn notify( &mut self, msg: NetlinkMessage<RouteNetlinkMessage>, ) -> 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)