#[non_exhaustive]pub enum Speed {
Unknown,
LowSpeed,
FullSpeed,
HighSpeed,
SuperSpeed,
SuperSpeedPlus,
}Expand description
USB speed.
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.
Unknown
Unknown speed.
LowSpeed
USB 1.0: 1.5 Mbit/s.
FullSpeed
USB 1.0: 12 Mbit/s.
HighSpeed
USB 2.0: 480 Mbit/s.
SuperSpeed
USB 3.0: 5 Gbit/s.
SuperSpeedPlus
USB 3.1: 10 Gbit/s.
Trait Implementations§
Source§impl Ord for Speed
impl Ord for Speed
Source§impl PartialOrd for Speed
impl PartialOrd for Speed
impl Copy for Speed
impl Eq for Speed
impl StructuralPartialEq for Speed
Auto Trait Implementations§
impl Freeze for Speed
impl RefUnwindSafe for Speed
impl Send for Speed
impl Sync for Speed
impl Unpin for Speed
impl UnsafeUnpin for Speed
impl UnwindSafe for Speed
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