pub enum MenuItem {
Label(String),
Separator,
Action(MenuAction),
}Expand description
A single entry in a MenuSnapshot.
Variants§
Label(String)
A non-interactive status line.
Separator
A horizontal separator.
Action(MenuAction)
A clickable action dispatched via DaemonService::menu_action.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MenuItem
impl RefUnwindSafe for MenuItem
impl Send for MenuItem
impl Sync for MenuItem
impl Unpin for MenuItem
impl UnsafeUnpin for MenuItem
impl UnwindSafe for MenuItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more