#[non_exhaustive]#[repr(u16)]pub enum SystemControlKey {
No = 0,
PowerDown = 129,
Sleep = 130,
WakeUp = 131,
Restart = 143,
}Expand description
Keys in Generic Desktop Page, generally used for system control
Ref: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=26
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for SystemControlKey
impl Clone for SystemControlKey
Source§fn clone(&self) -> SystemControlKey
fn clone(&self) -> SystemControlKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemControlKey
impl Debug for SystemControlKey
Source§impl From<u16> for SystemControlKey
impl From<u16> for SystemControlKey
Source§impl Ord for SystemControlKey
impl Ord for SystemControlKey
Source§impl PartialEq for SystemControlKey
impl PartialEq for SystemControlKey
Source§impl PartialOrd for SystemControlKey
impl PartialOrd for SystemControlKey
impl Copy for SystemControlKey
impl Eq for SystemControlKey
impl StructuralPartialEq for SystemControlKey
Auto Trait Implementations§
impl Freeze for SystemControlKey
impl RefUnwindSafe for SystemControlKey
impl Send for SystemControlKey
impl Sync for SystemControlKey
impl Unpin for SystemControlKey
impl UnwindSafe for SystemControlKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)