pub enum InterfaceKind {
Physical,
Loopback,
Virtual,
Tunnel,
Unknown,
}Expand description
What kind of interface this is.
Variants§
Physical
A hardware interface.
Loopback
The loopback interface.
Virtual
A bridge, VLAN, bond, or container veth.
Tunnel
A VPN or other tunnel.
Unknown
Not classifiable from the interface name and flags alone.
Trait Implementations§
Source§impl Clone for InterfaceKind
impl Clone for InterfaceKind
Source§fn clone(&self) -> InterfaceKind
fn clone(&self) -> InterfaceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterfaceKind
Source§impl Debug for InterfaceKind
impl Debug for InterfaceKind
Source§impl Default for InterfaceKind
impl Default for InterfaceKind
Source§fn default() -> InterfaceKind
fn default() -> InterfaceKind
Returns the “default value” for a type. Read more
impl Eq for InterfaceKind
Source§impl PartialEq for InterfaceKind
impl PartialEq for InterfaceKind
impl StructuralPartialEq for InterfaceKind
Auto Trait Implementations§
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