pub enum TrayEvent {
Clicked {
id: TrayIconId,
},
DoubleClicked {
id: TrayIconId,
},
RightClicked {
id: TrayIconId,
},
}Expand description
Interaction events occurring on a system tray icon.
Variants§
Clicked
Primary or single click on the tray icon.
Fields
§
id: TrayIconIdDoubleClicked
Double-click on the tray icon.
Fields
§
id: TrayIconIdRightClicked
Secondary or right click on the tray icon.
Fields
§
id: TrayIconIdImplementations§
Source§impl TrayEvent
impl TrayEvent
Sourcepub fn id(&self) -> TrayIconId
pub fn id(&self) -> TrayIconId
Returns the target TrayIconId associated with this event.
Trait Implementations§
impl Eq for TrayEvent
impl StructuralPartialEq for TrayEvent
Auto Trait Implementations§
impl Forget for TrayEvent
impl Freeze for TrayEvent
impl Move for TrayEvent
impl RefUnwindSafe for TrayEvent
impl Send for TrayEvent
impl Sync for TrayEvent
impl Unpin for TrayEvent
impl UnsafeUnpin for TrayEvent
impl UnwindSafe for TrayEvent
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