pub struct LinuxKeyboardEventParser { /* private fields */ }Expand description
A state machine accepts uapi::input_event, produces fir::InputReport when (Key Event + Sync Event) received. It also maintain the currently pressing key list.
Warning output, clean state and return errno when received events:
- unknown keycode.
- invalid event.
- not follow (Key Event + Sync Event) pattern.
Implementations§
Trait Implementations§
Source§impl Debug for LinuxKeyboardEventParser
impl Debug for LinuxKeyboardEventParser
Source§impl PartialEq for LinuxKeyboardEventParser
impl PartialEq for LinuxKeyboardEventParser
impl StructuralPartialEq for LinuxKeyboardEventParser
Auto Trait Implementations§
impl Freeze for LinuxKeyboardEventParser
impl RefUnwindSafe for LinuxKeyboardEventParser
impl Send for LinuxKeyboardEventParser
impl Sync for LinuxKeyboardEventParser
impl Unpin for LinuxKeyboardEventParser
impl UnsafeUnpin for LinuxKeyboardEventParser
impl UnwindSafe for LinuxKeyboardEventParser
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more