#[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 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 Debug for SystemControlReport
impl Debug for SystemControlReport
Source§impl PartialEq for SystemControlReport
impl PartialEq for SystemControlReport
Source§impl Serialize for SystemControlReport
impl Serialize for SystemControlReport
impl AsInputReport for SystemControlReport
impl Copy for SystemControlReport
impl Eq for SystemControlReport
impl StructuralPartialEq for SystemControlReport
Auto Trait Implementations§
impl Freeze for SystemControlReport
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