Struct tauri_hotkey::HotkeyManager [−][src]
pub struct HotkeyManager { /* fields omitted */ }
Implementations
impl HotkeyManager
[src]
impl HotkeyManager
[src]pub fn new() -> Self
[src]
pub fn is_registered(&self, hotkey: &Hotkey) -> bool
[src]
Determines whether the given hotkey is registered or not.
pub fn register<F>(&mut self, hotkey: Hotkey, callback: F) -> Result<()> where
F: 'static + FnMut() + Send,
[src]
F: 'static + FnMut() + Send,
pub fn unregister(&mut self, hotkey: &Hotkey) -> Result<()>
[src]
pub fn unregister_all(&mut self) -> Result<()>
[src]
Trait Implementations
impl Default for HotkeyManager
[src]
impl Default for HotkeyManager
[src]impl Drop for HotkeyManager
[src]
impl Drop for HotkeyManager
[src]Auto Trait Implementations
impl RefUnwindSafe for HotkeyManager
impl RefUnwindSafe for HotkeyManager
impl Send for HotkeyManager
impl Send for HotkeyManager
impl Sync for HotkeyManager
impl Sync for HotkeyManager
impl Unpin for HotkeyManager
impl Unpin for HotkeyManager
impl UnwindSafe for HotkeyManager
impl UnwindSafe for HotkeyManager