[−][src]Struct rtnetlink::Handle
Implementations
impl Handle
[src]
pub fn request(
&mut self,
message: NetlinkMessage<RtnlMessage>
) -> Result<impl Stream<Item = NetlinkMessage<RtnlMessage>>, Error>
[src]
&mut self,
message: NetlinkMessage<RtnlMessage>
) -> Result<impl Stream<Item = NetlinkMessage<RtnlMessage>>, Error>
pub fn notify(&mut self, msg: NetlinkMessage<RtnlMessage>) -> Result<(), Error>
[src]
pub fn link(&self) -> LinkHandle
[src]
Create a new handle, specifically for link requests (equivalent to ip link
commands)
pub fn address(&self) -> AddressHandle
[src]
Create a new handle, specifically for address requests (equivalent to ip addr
commands)
pub fn route(&self) -> RouteHandle
[src]
Create a new handle, specifically for routing table requests (equivalent to ip route
commands)
pub fn qdisc(&self) -> QDiscHandle
[src]
Create a new handle, specifically for traffic control qdisc requests
(equivalent to tc qdisc show
commands)
pub fn traffic_class(&self, ifindex: i32) -> TrafficClassHandle
[src]
Create a new handle, specifically for traffic control class requests
(equivalent to tc class show dev <interface_name>
commands)
pub fn traffic_filter(&self, ifindex: i32) -> TrafficFilterHandle
[src]
Create a new handle, specifically for traffic control filter requests
(equivalent to tc filter show dev <interface_name>
commands)
pub fn traffic_chain(&self, ifindex: i32) -> TrafficChainHandle
[src]
Create a new handle, specifically for traffic control chain requests
(equivalent to tc chain show dev <interface_name>
commands)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,