pub trait Backend: 'static {
// Required methods
fn name(&self) -> String;
fn start(&mut self, presses: Presses, status: Arc<SystemKeys>) -> Support;
fn register(&mut self, shortcuts: &[Shortcut]);
fn stop(&mut self);
}Expand description
What registers global shortcuts with the desktop. It lives on the
interface thread (global-hotkey’s manager is tied to it on Windows
and macOS); its threads write each registration’s state to status.
Required Methods§
Sourcefn start(&mut self, presses: Presses, status: Arc<SystemKeys>) -> Support
fn start(&mut self, presses: Presses, status: Arc<SystemKeys>) -> Support
Starts; says whether the desktop takes global shortcuts (it may
say later, through status).