#[non_exhaustive]pub enum GrabError {
EventTapError,
LoopSourceError,
MissingDisplayError,
KeyboardError,
KeyHookError(u32),
MouseHookError(u32),
SimulateError,
IoError(Error),
}
Expand description
Errors that occur when trying to grab 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
KeyHookError(u32)
Windows
MouseHookError(u32)
Windows
SimulateError
All
IoError(Error)
Trait Implementations§
Source§impl From<SimulateError> for GrabError
impl From<SimulateError> for GrabError
Source§fn from(_: SimulateError) -> GrabError
fn from(_: SimulateError) -> GrabError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrabError
impl !RefUnwindSafe for GrabError
impl Send for GrabError
impl Sync for GrabError
impl Unpin for GrabError
impl !UnwindSafe for GrabError
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