pub enum Class {
Show 26 variants
ClassInInterface,
Audio,
Communication,
Hid,
Physical,
StillImaging,
Printer,
MassStorage,
Hub(HubSpeed),
CdcData,
SmartCard,
ContentSecurity,
Video,
PersonalHealthcare,
AudioVideo(AudioVideoType),
Billboard,
TypeCBridge,
BulkDisplayProtocol,
MctpOverUsb(MctpType),
I3c,
Diagnostic(DiagnosticType),
Wireless(WirelessType),
Miscellaneous(MiscellaneousType),
Application(ApplicationType),
Vendor,
Unknown {
class: u8,
subclass: u8,
protocol: u8,
},
}Expand description
USB Device Class Codes as defined by USB-IF https://www.usb.org/defined-class-codes
Variants§
ClassInInterface
Use class information in the Interface Descriptors
Audio
Audio device
Communication
Communications and CDC Control
Hid
HID (Human Interface Device)
Physical
Physical device
StillImaging
Still Imaging device
Printer
Printer device
MassStorage
Mass Storage device
Hub(HubSpeed)
Hub device
CdcData
CDC-Data
SmartCard
Smart Card device
ContentSecurity
Content Security device
Video
Video device
PersonalHealthcare
Personal Healthcare device
AudioVideo(AudioVideoType)
Audio/Video Devices
Billboard
Billboard Device
TypeCBridge
USB Type-C Bridge Device
BulkDisplayProtocol
USB Bulk Display Protocol Device
MctpOverUsb(MctpType)
MCTP over USB Protocol Endpoint Device
I3c
I3C Device
Diagnostic(DiagnosticType)
Diagnostic Device
Wireless(WirelessType)
Wireless Controller
Miscellaneous(MiscellaneousType)
Miscellaneous
Application(ApplicationType)
Application Specific
Vendor
Vendor Specific
Unknown
Unknown/Other class codes
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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