pub enum HookReturnValue {
CallNextHook,
BlockMessage,
PassToWindowProcOnly,
ExplicitValue(LRESULT),
}
Available on crate feature
hooking
only.Expand description
A value indicating what action should be taken after returning from the user callback
in LowLevelInputHook::run_hook
.
Variants§
CallNextHook
Returns the result of calling [CallNextHookEx
] with the original raw message,
allowing further processing by other hooks.
BlockMessage
Prevents the event from being passed on to the target window procedure or the rest of the hook chain.
PassToWindowProcOnly
Passes the event to the target window procedure but not the rest of the hook chain.
ExplicitValue(LRESULT)
Trait Implementations§
Source§impl Clone for HookReturnValue
impl Clone for HookReturnValue
Source§fn clone(&self) -> HookReturnValue
fn clone(&self) -> HookReturnValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HookReturnValue
impl Debug for HookReturnValue
Source§impl Default for HookReturnValue
impl Default for HookReturnValue
Source§fn default() -> HookReturnValue
fn default() -> HookReturnValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for HookReturnValue
impl PartialEq for HookReturnValue
impl Copy for HookReturnValue
impl Eq for HookReturnValue
impl StructuralPartialEq for HookReturnValue
Auto Trait Implementations§
impl Freeze for HookReturnValue
impl RefUnwindSafe for HookReturnValue
impl Send for HookReturnValue
impl Sync for HookReturnValue
impl Unpin for HookReturnValue
impl UnwindSafe for HookReturnValue
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