tray_icon::menu

Trait IsMenuItem

Source
pub trait IsMenuItem: IsMenuItemBase {
    // Required methods
    fn kind(&self) -> MenuItemKind;
    fn id(&self) -> &MenuId;
    fn into_id(self) -> MenuId;
}
Expand description

A trait that defines a generic item in a menu, which may be one of MenuItemKind

Required Methods§

Source

fn kind(&self) -> MenuItemKind

Returns a MenuItemKind associated with this item.

Source

fn id(&self) -> &MenuId

Returns a unique identifier associated with this menu item.

Source

fn into_id(self) -> MenuId

Convert this menu item into its menu ID.

Implementors§