pub struct PortStatus {
pub connected: bool,
pub enabled: bool,
pub speed: Speed,
pub overcurrent: bool,
}Expand description
What the root port reports.
Fields§
§connected: boolA device is attached.
enabled: boolThe port finished a reset and is talking to the device.
speed: SpeedSpeed of the attached device; only meaningful while enabled.
overcurrent: boolThe port draws too much current.
Trait Implementations§
Source§impl Clone for PortStatus
impl Clone for PortStatus
impl Copy for PortStatus
Source§impl Debug for PortStatus
impl Debug for PortStatus
impl Eq for PortStatus
Source§impl Format for PortStatus
impl Format for PortStatus
Source§impl PartialEq for PortStatus
impl PartialEq for PortStatus
impl StructuralPartialEq for PortStatus
Auto Trait Implementations§
impl Forget for PortStatus
impl Freeze for PortStatus
impl Move for PortStatus
impl RefUnwindSafe for PortStatus
impl Send for PortStatus
impl Sync for PortStatus
impl Unpin for PortStatus
impl UnsafeUnpin for PortStatus
impl UnwindSafe for PortStatus
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