#[non_exhaustive]pub enum CoreError {
MacEventTapError,
MacLoopSourceError,
LinuxMissingDisplayError,
LinuxKeyboardError,
LinuxRecordContextEnablingError,
LinuxRecordContextError,
LinuxXRecordExtensionError,
WindowsKeyHookError(String),
WindowsMouseHookError(String),
WindowsRegisterRawInputError(String),
}Expand description
Errors that occur when trying to capture OS events.
§Note on macOS
On macOS, failing to set Accessibility permissions does not necessarily trigger an error; the system may simply ignore events or return empty data.
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.
MacEventTapError
macOS: Failed to create an event tap.
MacLoopSourceError
macOS: Failed to add the event tap to the run loop.
LinuxMissingDisplayError
Linux: Could not open the X11 display.
LinuxKeyboardError
Linux: Keyboard-related error in the X11 or Wayland backend.
LinuxRecordContextEnablingError
Linux: Failed to enable the XRecord context.
LinuxRecordContextError
Linux: General XRecord context error.
LinuxXRecordExtensionError
Linux: The XRecord extension is missing or incompatible.
WindowsKeyHookError(String)
Windows: Failed to set a low-level keyboard hook.
WindowsMouseHookError(String)
Windows: Failed to set a low-level mouse hook.
WindowsRegisterRawInputError(String)
Windows: Failed to register for Raw Input devices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnwindSafe for CoreError
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