#[non_exhaustive]pub enum NetClass {
Ecm,
EcmSubset,
Eem,
Ncm,
Rndis,
}
Expand description
Class of USB network device.
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.
Ecm
Ethernet Control Model (CDC ECM).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_ECM
must be enabled.
EcmSubset
Subset of Ethernet Control Model (CDC ECM subset).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_ECM_SUBSET
must be enabled.
Eem
Ethernet Emulation Model (CDC EEM).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_EEM
must be enabled.
Ncm
Network Control Model (CDC NCM).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_NCM
must be enabled.
Rndis
Remote Network Driver Interface Specification (RNDIS).
The Linux kernel configuration option CONFIG_USB_CONFIGFS_RNDIS
must be enabled.
Trait Implementations§
impl Copy for NetClass
impl Eq for NetClass
impl StructuralPartialEq for NetClass
Auto Trait Implementations§
impl Freeze for NetClass
impl RefUnwindSafe for NetClass
impl Send for NetClass
impl Sync for NetClass
impl Unpin for NetClass
impl UnwindSafe for NetClass
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