#[non_exhaustive]pub enum ListenError {
EventTapError,
LoopSourceError,
MissingDisplayError,
KeyboardError,
RecordContextEnablingError,
RecordContextError,
XRecordExtensionError,
KeyHookError(u32),
MouseHookError(u32),
}
Expand description
Errors that occur when trying to capture OS events. Be careful on Mac, not setting accessibility does not cause an error it justs ignores events.
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.
EventTapError
MacOS
LoopSourceError
MacOS
MissingDisplayError
Linux
KeyboardError
Linux
RecordContextEnablingError
Linux
RecordContextError
Linux
XRecordExtensionError
Linux
KeyHookError(u32)
Windows
MouseHookError(u32)
Windows
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListenError
impl RefUnwindSafe for ListenError
impl Send for ListenError
impl Sync for ListenError
impl Unpin for ListenError
impl UnwindSafe for ListenError
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