Struct usbd_hid::descriptor::SystemControlReport
source · #[repr(C, packed(1))]pub struct SystemControlReport {
pub usage_id: u8,
}
Expand description
SystemControlReport describes a report and descriptor that can be used to send system control commands to the host.
This is commonly used to enter sleep mode, power down, hibernate, etc.
Reference: https://usb.org/sites/default/files/hut1_2.pdf
NOTE: For Windows compatibility usage_min should start at 0x81 NOTE: For macOS scrollbar compatibility, logical minimum should start from 1 (scrollbars disappear if logical_min is set to 0)
Fields§
§usage_id: u8
Trait Implementations§
source§impl Clone for SystemControlReport
impl Clone for SystemControlReport
source§fn clone(&self) -> SystemControlReport
fn clone(&self) -> SystemControlReport
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 Debug for SystemControlReport
impl Debug for SystemControlReport
source§impl Serialize for SystemControlReport
impl Serialize for SystemControlReport
impl AsInputReport for SystemControlReport
impl Copy for SystemControlReport
Auto Trait Implementations§
impl RefUnwindSafe for SystemControlReport
impl Send for SystemControlReport
impl Sync for SystemControlReport
impl Unpin for SystemControlReport
impl UnwindSafe for SystemControlReport
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