[][src]Struct rtnetlink::Handle

pub struct Handle(_);

Implementations

impl Handle[src]

pub fn request(
    &mut self,
    message: NetlinkMessage<RtnlMessage>
) -> Result<impl Stream<Item = NetlinkMessage<RtnlMessage>>, Error>
[src]

pub fn notify(&mut self, msg: NetlinkMessage<RtnlMessage>) -> Result<(), Error>[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

impl Clone for Handle[src]

impl Debug for Handle[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.