Skip to main content

MenuAtIcon

Trait MenuAtIcon 

Source
pub trait MenuAtIcon {
    // Required method
    fn show(&self, menu: &[MenuEntry]) -> PopupMenuFuture;
}
Expand description

A tray icon’s menu the app opens.

Required Methods§

Source

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".

Implementors§