#[repr(transparent)]
pub struct Interface(_);
Available on crate feature net
only.
Expand description
A network interface. Has a name like “eth0” or “wlp4s0” or “wlan0”, as well as an index
(1, 2, 3, etc) that identifies it in the OS’s networking stack.
Obtain the index of this interface.
Obtain the name of this interface.
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.