#[repr(C, packed(1))]pub struct USB_20_PORT_STATUS {
pub AsUshort16: USHORT,
}
Fields§
§AsUshort16: USHORT
Implementations§
Source§impl USB_20_PORT_STATUS
impl USB_20_PORT_STATUS
pub fn CurrentConnectStatus(&self) -> USHORT
pub fn set_CurrentConnectStatus(&mut self, val: USHORT)
pub fn PortEnabledDisabled(&self) -> USHORT
pub fn set_PortEnabledDisabled(&mut self, val: USHORT)
pub fn Suspend(&self) -> USHORT
pub fn set_Suspend(&mut self, val: USHORT)
pub fn OverCurrent(&self) -> USHORT
pub fn set_OverCurrent(&mut self, val: USHORT)
pub fn Reset(&self) -> USHORT
pub fn set_Reset(&mut self, val: USHORT)
pub fn L1(&self) -> USHORT
pub fn set_L1(&mut self, val: USHORT)
pub fn Reserved0(&self) -> USHORT
pub fn set_Reserved0(&mut self, val: USHORT)
pub fn PortPower(&self) -> USHORT
pub fn set_PortPower(&mut self, val: USHORT)
pub fn LowSpeedDeviceAttached(&self) -> USHORT
pub fn set_LowSpeedDeviceAttached(&mut self, val: USHORT)
pub fn HighSpeedDeviceAttached(&self) -> USHORT
pub fn set_HighSpeedDeviceAttached(&mut self, val: USHORT)
pub fn PortTestMode(&self) -> USHORT
pub fn set_PortTestMode(&mut self, val: USHORT)
pub fn PortIndicatorControl(&self) -> USHORT
pub fn set_PortIndicatorControl(&mut self, val: USHORT)
pub fn Reserved1(&self) -> USHORT
pub fn set_Reserved1(&mut self, val: USHORT)
Trait Implementations§
Source§impl Clone for USB_20_PORT_STATUS
impl Clone for USB_20_PORT_STATUS
Source§fn clone(&self) -> USB_20_PORT_STATUS
fn clone(&self) -> USB_20_PORT_STATUS
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for USB_20_PORT_STATUS
impl Default for USB_20_PORT_STATUS
Source§fn default() -> USB_20_PORT_STATUS
fn default() -> USB_20_PORT_STATUS
Returns the “default value” for a type. Read more
impl Copy for USB_20_PORT_STATUS
Auto Trait Implementations§
impl Freeze for USB_20_PORT_STATUS
impl RefUnwindSafe for USB_20_PORT_STATUS
impl Send for USB_20_PORT_STATUS
impl Sync for USB_20_PORT_STATUS
impl Unpin for USB_20_PORT_STATUS
impl UnwindSafe for USB_20_PORT_STATUS
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