pub struct MenuSnapshot {
pub title: String,
pub items: Vec<MenuItem>,
}Expand description
A cheap snapshot of a service’s tray submenu, rebuilt on each poll.
Fields§
§title: StringSubmenu title (the parent menu-bar entry label).
items: Vec<MenuItem>Ordered submenu entries.
Trait Implementations§
Source§impl Clone for MenuSnapshot
impl Clone for MenuSnapshot
Source§fn clone(&self) -> MenuSnapshot
fn clone(&self) -> MenuSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MenuSnapshot
impl Debug for MenuSnapshot
Source§impl Default for MenuSnapshot
impl Default for MenuSnapshot
Source§fn default() -> MenuSnapshot
fn default() -> MenuSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MenuSnapshot
impl RefUnwindSafe for MenuSnapshot
impl Send for MenuSnapshot
impl Sync for MenuSnapshot
impl Unpin for MenuSnapshot
impl UnsafeUnpin for MenuSnapshot
impl UnwindSafe for MenuSnapshot
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