pub trait MenuAtIcon {
// Required method
fn show(&self, menu: &[MenuEntry]) -> PopupMenuFuture;
}Expand description
A tray icon’s menu the app opens.
Required Methods§
Sourcefn show(&self, menu: &[MenuEntry]) -> PopupMenuFuture
fn show(&self, menu: &[MenuEntry]) -> PopupMenuFuture
Shows menu at the icon; answers the id of the item chosen once it closes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".