Enum kiibohd_usb::CtrlState
source · pub enum CtrlState {
SystemCtrlPress(u8),
SystemCtrlRelease(u8),
ConsumerCtrlPress(u16),
ConsumerCtrlRelease(u16),
Clear,
Unknown,
}Variants§
SystemCtrlPress(u8)
Press the given USB HID System Ctrl code
SystemCtrlRelease(u8)
Release the given USB HID System Ctrl code
ConsumerCtrlPress(u16)
Press the given USB HID Consumer Ctrl code
ConsumerCtrlRelease(u16)
Release the given USB HID Consumer Ctrl code
Clear
Clear all the currently pressed consumer and system control HID codes
Unknown
Unknown state, used for errors
Trait Implementations§
source§impl PartialEq<CtrlState> for CtrlState
impl PartialEq<CtrlState> for CtrlState
impl Copy for CtrlState
impl Eq for CtrlState
impl StructuralEq for CtrlState
impl StructuralPartialEq for CtrlState
Auto Trait Implementations§
impl RefUnwindSafe for CtrlState
impl Send for CtrlState
impl Sync for CtrlState
impl Unpin for CtrlState
impl UnwindSafe for CtrlState
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