#[repr(u8)]pub enum StandardUSBDeviceClassCode {
Show 22 variants
ReferInterfaceDescriptor = 0,
Audio = 1,
CommunicationsAndCDCControl = 2,
HID = 3,
Physical = 5,
Image = 6,
Printer = 7,
MassStorage = 8,
Hub = 9,
CDCData = 10,
SmartCard = 11,
ContentSecurity = 13,
Video = 14,
PersonalHealthcare = 15,
AudioVideoDevices = 16,
BillboardDeviceClass = 17,
USBTypeCBridge = 18,
DiagnosticDevice = 220,
WirelessController = 224,
Miscellaneous = 239,
ApplicationSpecific = 254,
VendorSpecific = 255,
}Variants§
ReferInterfaceDescriptor = 0
Audio = 1
CommunicationsAndCDCControl = 2
HID = 3
Physical = 5
Image = 6
Printer = 7
MassStorage = 8
Hub = 9
CDCData = 10
SmartCard = 11
ContentSecurity = 13
Video = 14
PersonalHealthcare = 15
AudioVideoDevices = 16
BillboardDeviceClass = 17
USBTypeCBridge = 18
DiagnosticDevice = 220
WirelessController = 224
Miscellaneous = 239
ApplicationSpecific = 254
VendorSpecific = 255
Trait Implementations§
Source§impl Clone for StandardUSBDeviceClassCode
impl Clone for StandardUSBDeviceClassCode
Source§fn clone(&self) -> StandardUSBDeviceClassCode
fn clone(&self) -> StandardUSBDeviceClassCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StandardUSBDeviceClassCode
impl Debug for StandardUSBDeviceClassCode
Source§impl FromPrimitive for StandardUSBDeviceClassCode
impl FromPrimitive for StandardUSBDeviceClassCode
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Copy for StandardUSBDeviceClassCode
Auto Trait Implementations§
impl Freeze for StandardUSBDeviceClassCode
impl RefUnwindSafe for StandardUSBDeviceClassCode
impl Send for StandardUSBDeviceClassCode
impl Sync for StandardUSBDeviceClassCode
impl Unpin for StandardUSBDeviceClassCode
impl UnwindSafe for StandardUSBDeviceClassCode
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