pub struct XhciPort {
pub number: u8,
pub connected: bool,
pub enabled: bool,
pub speed: PortSpeed,
pub powered: bool,
pub resetting: bool,
}Expand description
xHCI port information
Fields§
§number: u8Port number (1-based)
connected: boolWhether a device is connected
enabled: boolWhether the port is enabled
speed: PortSpeedCurrent speed of connected device
powered: boolWhether the port is powered
resetting: boolWhether a reset is in progress
Implementations§
Source§impl XhciPort
impl XhciPort
Sourcepub fn from_portsc(port_number: u8, portsc: u32) -> Self
pub fn from_portsc(port_number: u8, portsc: u32) -> Self
Parse port state from a PORTSC register value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XhciPort
impl RefUnwindSafe for XhciPort
impl Send for XhciPort
impl Sync for XhciPort
impl Unpin for XhciPort
impl UnwindSafe for XhciPort
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)