pub trait AttachedMenu {
// Required method
fn set_menu(&self, menu: &[MenuEntry]);
}Expand description
A tray icon’s menu the system opens by itself.
Required Methods§
Replaces the menu whole; [] takes it away. A choice reaches the app as
TrayIconEvent::MenuSelected.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".