#[repr(u8)]pub enum LinkClass {
Unknown = 0,
Loopback = 1,
Wired = 2,
Wifi = 3,
Cellular = 4,
}Expand description
The kind of link the local interface presents. A class change (Wi-Fi to cellular, a wired uplink dropping to Wi-Fi) is a path event in its own right.
Variants§
Unknown = 0
Not yet determined / no usable interface.
Loopback = 1
Software loopback.
Wired = 2
Wired Ethernet (no radio).
Wifi = 3
Wi-Fi (802.11) - the radio MAC stats below apply.
Cellular = 4
Cellular (WWAN).
Implementations§
Trait Implementations§
impl Copy for LinkClass
impl Eq for LinkClass
impl StructuralPartialEq for LinkClass
Auto Trait Implementations§
impl Freeze for LinkClass
impl RefUnwindSafe for LinkClass
impl Send for LinkClass
impl Sync for LinkClass
impl Unpin for LinkClass
impl UnsafeUnpin for LinkClass
impl UnwindSafe for LinkClass
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