#[repr(C, packed(1))]pub struct USB_DEVICE_STATUS {
pub AsUshort16: USHORT,
}
Fields§
§AsUshort16: USHORT
Implementations§
Source§impl USB_DEVICE_STATUS
impl USB_DEVICE_STATUS
pub fn SelfPowered(&self) -> USHORT
pub fn set_SelfPowered(&mut self, val: USHORT)
pub fn RemoteWakeup(&self) -> USHORT
pub fn set_RemoteWakeup(&mut self, val: USHORT)
pub fn U1Enable(&self) -> USHORT
pub fn set_U1Enable(&mut self, val: USHORT)
pub fn U2Enable(&self) -> USHORT
pub fn set_U2Enable(&mut self, val: USHORT)
pub fn LtmEnable(&self) -> USHORT
pub fn set_LtmEnable(&mut self, val: USHORT)
pub fn Reserved(&self) -> USHORT
pub fn set_Reserved(&mut self, val: USHORT)
Trait Implementations§
Source§impl Clone for USB_DEVICE_STATUS
impl Clone for USB_DEVICE_STATUS
Source§fn clone(&self) -> USB_DEVICE_STATUS
fn clone(&self) -> USB_DEVICE_STATUS
Returns a copy 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_DEVICE_STATUS
impl Default for USB_DEVICE_STATUS
Source§fn default() -> USB_DEVICE_STATUS
fn default() -> USB_DEVICE_STATUS
Returns the “default value” for a type. Read more
impl Copy for USB_DEVICE_STATUS
Auto Trait Implementations§
impl Freeze for USB_DEVICE_STATUS
impl RefUnwindSafe for USB_DEVICE_STATUS
impl Send for USB_DEVICE_STATUS
impl Sync for USB_DEVICE_STATUS
impl Unpin for USB_DEVICE_STATUS
impl UnwindSafe for USB_DEVICE_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