#[repr(C, packed(1))]pub struct GsDeviceConfig {
pub reserved1: u8,
pub reserved2: u8,
pub reserved3: u8,
pub icount: u8,
pub sw_version: u32,
pub hw_version: u32,
}Expand description
Response to GS_USB_BREQ_DEVICE_CONFIG.
Fields§
§reserved1: u8Reserved (was icount in older protocol versions).
reserved2: u8Reserved.
reserved3: u8Reserved.
icount: u8Interface count (typically 1).
sw_version: u32Firmware version (user-defined).
hw_version: u32Hardware version (user-defined).
Implementations§
Trait Implementations§
Source§impl Clone for GsDeviceConfig
impl Clone for GsDeviceConfig
impl Copy for GsDeviceConfig
Source§impl Debug for GsDeviceConfig
impl Debug for GsDeviceConfig
Auto Trait Implementations§
impl Forget for GsDeviceConfig
impl Freeze for GsDeviceConfig
impl Move for GsDeviceConfig
impl RefUnwindSafe for GsDeviceConfig
impl Send for GsDeviceConfig
impl Sync for GsDeviceConfig
impl Unpin for GsDeviceConfig
impl UnsafeUnpin for GsDeviceConfig
impl UnwindSafe for GsDeviceConfig
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