#[repr(u16)]pub enum MiscKind {
Serial = 0,
PulseLed = 1,
Gesture = 2,
Raw = 3,
Scancode = 4,
Timestamp = 5,
Unknown6 = 6,
Unknown7 = 7,
}
Expand description
Miscellaneous events.
Variants§
Serial = 0
Serial number, only exported for tablets (“Transducer Serial Number”)
PulseLed = 1
Only used by the PowerMate driver, right now.
Gesture = 2
Completely unused
Raw = 3
“Raw” event, rarely used.
Scancode = 4
Key scancode
Timestamp = 5
Completely unused
Unknown6 = 6
Unknown7 = 7
Implementations§
Trait Implementations§
Source§impl BitmaskTrait for MiscKind
impl BitmaskTrait for MiscKind
Source§fn array_default() -> Self::Array
fn array_default() -> Self::Array
The default empty state of the bitmask.
Source§fn array_slice(array: &Self::Array) -> &[u8] ⓘ
fn array_slice(array: &Self::Array) -> &[u8] ⓘ
A representation of the bitmask as a slice of bytes.
Source§impl<'de> Deserialize<'de> for MiscKind
impl<'de> Deserialize<'de> for MiscKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IterableEnum for MiscKind
impl IterableEnum for MiscKind
Source§impl Ord for MiscKind
impl Ord for MiscKind
Source§impl PartialOrd for MiscKind
impl PartialOrd for MiscKind
impl Copy for MiscKind
impl Eq for MiscKind
impl StructuralPartialEq for MiscKind
Auto Trait Implementations§
impl Freeze for MiscKind
impl RefUnwindSafe for MiscKind
impl Send for MiscKind
impl Sync for MiscKind
impl Unpin for MiscKind
impl UnwindSafe for MiscKind
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