pub enum PortSpeed {
Full,
Low,
High,
Super,
SuperPlus,
Unknown,
}Expand description
Port speed as reported by xHCI PORTSC
Variants§
Full
Full-speed (12 Mb/s)
Low
Low-speed (1.5 Mb/s)
High
High-speed (480 Mb/s)
Super
SuperSpeed (5 Gb/s)
SuperPlus
SuperSpeedPlus (10+ Gb/s)
Unknown
Unknown speed
Implementations§
Source§impl PortSpeed
impl PortSpeed
Sourcepub fn from_portsc(speed_val: u32) -> Self
pub fn from_portsc(speed_val: u32) -> Self
Convert from PORTSC speed field value
Sourcepub fn default_max_packet_size_ep0(&self) -> u16
pub fn default_max_packet_size_ep0(&self) -> u16
Get the maximum packet size for endpoint 0 for this speed
Trait Implementations§
impl Copy for PortSpeed
impl Eq for PortSpeed
impl StructuralPartialEq for PortSpeed
Auto Trait Implementations§
impl Freeze for PortSpeed
impl RefUnwindSafe for PortSpeed
impl Send for PortSpeed
impl Sync for PortSpeed
impl Unpin for PortSpeed
impl UnwindSafe for PortSpeed
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)