Struct livesplit_hotkey::linux::Hook [−][src]
pub struct Hook { /* fields omitted */ }
Methods
impl Hook
[src]
impl Hook
pub fn new() -> Result<Self>
[src]
pub fn new() -> Result<Self>
pub fn register<F>(&self, hotkey: KeyCode, callback: F) -> Result<()> where
F: FnMut() + Send + 'static,
[src]
pub fn register<F>(&self, hotkey: KeyCode, callback: F) -> Result<()> where
F: FnMut() + Send + 'static,
pub fn unregister(&self, hotkey: KeyCode) -> Result<()>
[src]
pub fn unregister(&self, hotkey: KeyCode) -> Result<()>