pub struct TraySpec {
pub tooltip: String,
pub icon_png: Option<Vec<u8>>,
pub template: bool,
pub items: Vec<MenuEntry>,
pub left_click: LeftClick,
pub show_label: String,
pub quit_label: String,
}Fields§
§tooltip: String§icon_png: Option<Vec<u8>>PNG bytes. None uses the app’s default window icon.
template: boolRender the icon as a macOS template (monochrome, tinted by the system).
items: Vec<MenuEntry>§left_click: LeftClick§show_label: String§quit_label: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for TraySpec
impl RefUnwindSafe for TraySpec
impl Send for TraySpec
impl Sync for TraySpec
impl Unpin for TraySpec
impl UnsafeUnpin for TraySpec
impl UnwindSafe for TraySpec
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