pub enum CallbackResult {
Keep,
Drop,
Replace(CGEvent),
}Expand description
What the system should do with the event passed to the callback.
This value is ignored if CGEventTapOptions::ListenOnly is specified.
Variants§
Keep
Pass the event unchanged to other consumers.
Drop
Drop the event so it is not passed to later consumers.
Replace(CGEvent)
Replace the event with a different one.
Auto Trait Implementations§
impl Freeze for CallbackResult
impl RefUnwindSafe for CallbackResult
impl !Send for CallbackResult
impl !Sync for CallbackResult
impl Unpin for CallbackResult
impl UnwindSafe for CallbackResult
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