pub trait Backend: 'static {
// Required methods
fn name(&self) -> String;
fn start(&mut self, spec: &Spec, events: Events) -> Result<(), String>;
fn set_menu(&mut self, entries: &[Entry]) -> Result<(), String>;
fn stop(&mut self);
}Expand description
What shows the tray icon. It lives on the interface thread (the system’s tray objects are tied to it on Windows and macOS).
Required Methods§
Shows this menu from now on.