#[non_exhaustive]pub enum UsbVersion {
Two = 512,
TwoOne = 528,
Three = 768,
ThreeOne = 784,
ThreeTwo = 800,
}Expand description
The USB specification release (bcdUSB) reported in the device descriptor.
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.
Two = 512
Usb version 2.0
TwoOne = 528
Usb version 2.1
Three = 768
Usb version 3.0
ThreeOne = 784
Usb version 3.1
ThreeTwo = 800
Usb version 3.2
Trait Implementations§
Auto Trait Implementations§
impl Forget for UsbVersion
impl Freeze for UsbVersion
impl Move for UsbVersion
impl RefUnwindSafe for UsbVersion
impl Send for UsbVersion
impl Sync for UsbVersion
impl Unpin for UsbVersion
impl UnsafeUnpin for UsbVersion
impl UnwindSafe for UsbVersion
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