#[non_exhaustive]pub enum InterfaceKind {
Ethernet,
Wifi,
Loopback,
Tunnel,
Bridge,
Virtual,
Cellular,
Other,
}Expand description
What kind of network interface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ethernet
Wired Ethernet.
Wifi
Wi-Fi.
Loopback
Loopback.
Tunnel
A tunnel (WireGuard, tun, GRE, IP-in-IP).
Bridge
A bridge.
Virtual
Virtual (veth, a VM’s adapter, a bond member).
Cellular
Mobile broadband.
Other
Anything else.
Trait Implementations§
Source§impl Clone for InterfaceKind
impl Clone for InterfaceKind
impl Copy for InterfaceKind
Source§impl Debug for InterfaceKind
impl Debug for InterfaceKind
impl Eq for InterfaceKind
Source§impl Hash for InterfaceKind
impl Hash for InterfaceKind
Source§impl PartialEq for InterfaceKind
impl PartialEq for InterfaceKind
impl StructuralPartialEq for InterfaceKind
Auto Trait Implementations§
impl Forget for InterfaceKind
impl Freeze for InterfaceKind
impl RefUnwindSafe for InterfaceKind
impl Send for InterfaceKind
impl Sync for InterfaceKind
impl Unpin for InterfaceKind
impl UnsafeUnpin for InterfaceKind
impl UnwindSafe for InterfaceKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more