Trait LowLevelInputHook

Source
pub trait LowLevelInputHook: HookType + Copy {
    // Provided method
    fn run_hook<F>(user_callback: &mut F) -> Result<()>
       where F: FnMut(Self::Message) -> HookReturnValue + Send { ... }
}
Available on crate feature hooking only.
Expand description

A global mouse or keyboard hook.

This hook can be used to listen to mouse (with LowLevelMouseHook) or keyboard (with LowLevelKeyboardHook) events, no matter which application or window they occur in.

Provided Methods§

Source

fn run_hook<F>(user_callback: &mut F) -> Result<()>
where F: FnMut(Self::Message) -> HookReturnValue + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§