Struct usbd_hid::descriptor::SystemControlReport
source · [−]#[repr(C, packed)]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
sourceimpl Clone for SystemControlReport
impl Clone for SystemControlReport
sourcefn clone(&self) -> SystemControlReport
fn clone(&self) -> SystemControlReport
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SystemControlReport
impl Debug for SystemControlReport
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more