Enum kiibohd_usb::KeyState
source · pub enum KeyState {
Press(u8),
Release(u8),
Clear,
Unknown,
}Variants§
Press(u8)
Press the given USB HID Keyboard code
Release(u8)
Release the given USB HID Keyboard code
Clear
Clear all currently pressed USB HID Keyboard codes
Unknown
Unknown state, used for errors
Trait Implementations§
source§impl PartialEq<KeyState> for KeyState
impl PartialEq<KeyState> for KeyState
impl Copy for KeyState
impl Eq for KeyState
impl StructuralEq for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnwindSafe for KeyState
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