pub struct TrayRuntime {
pub icon: Mutex<Option<TrayIcon<Wry>>>,
pub ids: Mutex<HashSet<String>>,
pub show_label: String,
pub quit_label: String,
}Fields§
§icon: Mutex<Option<TrayIcon<Wry>>>§ids: Mutex<HashSet<String>>Ids of the items currently in the tray menu. Tauri delivers EVERY menu event (including the app menu’s) to a tray’s handler, so only these ids are tray actions.
show_label: String§quit_label: StringAuto Trait Implementations§
impl !Freeze for TrayRuntime
impl RefUnwindSafe for TrayRuntime
impl Send for TrayRuntime
impl Sync for TrayRuntime
impl Unpin for TrayRuntime
impl UnsafeUnpin for TrayRuntime
impl UnwindSafe for TrayRuntime
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