pub enum UsbVersion {
V11,
V20,
V21,
V30,
V31,
Other(u16),
}Expand description
USB version.
Variants§
V11
USB 1.1
V20
USB 2.0
V21
USB 2.0 with BOS descriptor support (bcdUSB 0x0201), needed for WinUSB.
V30
USB 3.0
V31
USB 3.1
Other(u16)
Other version in BCD format.
Trait Implementations§
Source§impl Clone for UsbVersion
impl Clone for UsbVersion
Source§fn clone(&self) -> UsbVersion
fn clone(&self) -> UsbVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UsbVersion
Source§impl Debug for UsbVersion
impl Debug for UsbVersion
Source§impl Default for UsbVersion
impl Default for UsbVersion
Source§fn default() -> UsbVersion
fn default() -> UsbVersion
Returns the “default value” for a type. Read more
impl Eq for UsbVersion
Source§impl From<UsbVersion> for u16
impl From<UsbVersion> for u16
Source§fn from(value: UsbVersion) -> Self
fn from(value: UsbVersion) -> Self
Converts to this type from the input type.
Source§impl Hash for UsbVersion
impl Hash for UsbVersion
Source§impl Ord for UsbVersion
impl Ord for UsbVersion
Source§fn cmp(&self, other: &UsbVersion) -> Ordering
fn cmp(&self, other: &UsbVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UsbVersion
impl PartialEq for UsbVersion
Source§impl PartialOrd for UsbVersion
impl PartialOrd for UsbVersion
impl StructuralPartialEq for UsbVersion
Auto Trait Implementations§
impl Freeze 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