pub enum NetMedia {
Ethernet,
Ieee8023,
Ppp,
FibreChannel,
Loopback,
Other,
}Expand description
Link-layer media type, as reported by ifconfig.
Variants§
Ethernet
Ethernet framing (Ethernet II header, 6-byte MAC).
Ieee8023
IEEE 802.3 framing without the Ethernet II type field.
Ppp
Point-to-point serial link.
FibreChannel
Fibre channel.
Loopback
Loopback adapter.
Other
Anything a driver cannot classify.
Implementations§
Trait Implementations§
impl Copy for NetMedia
impl Eq for NetMedia
impl StructuralPartialEq for NetMedia
Auto Trait Implementations§
impl Forget for NetMedia
impl Freeze for NetMedia
impl Move for NetMedia
impl RefUnwindSafe for NetMedia
impl Send for NetMedia
impl Sync for NetMedia
impl Unpin for NetMedia
impl UnsafeUnpin for NetMedia
impl UnwindSafe for NetMedia
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