pub struct NotificationIcon<'a, WML> { /* private fields */ }
Available on crate feature
ui
only.Expand description
An icon in the Windows notification area.
This icon is always associated with a window and can be used in conjunction with menu::PopupMenu
.
Implementations§
Source§impl<'a, WML> NotificationIcon<'a, WML>
impl<'a, WML> NotificationIcon<'a, WML>
Allows showing or hiding the icon in the notification area.
Sourcepub fn set_tooltip_text(&mut self, text: &str) -> Result<()>
pub fn set_tooltip_text(&mut self, text: &str) -> Result<()>
Sets the tooltip text when hovering over the icon with the mouse.
Sourcepub fn set_balloon_notification(
&mut self,
notification: Option<BalloonNotification<'_>>,
) -> Result<()>
pub fn set_balloon_notification( &mut self, notification: Option<BalloonNotification<'_>>, ) -> Result<()>
Triggers a balloon notification above the notification icon.
Trait Implementations§
Auto Trait Implementations§
impl<'a, WML> Freeze for NotificationIcon<'a, WML>
impl<'a, WML> RefUnwindSafe for NotificationIcon<'a, WML>where
WML: RefUnwindSafe,
impl<'a, WML> !Send for NotificationIcon<'a, WML>
impl<'a, WML> !Sync for NotificationIcon<'a, WML>
impl<'a, WML> Unpin for NotificationIcon<'a, WML>
impl<'a, WML> UnwindSafe for NotificationIcon<'a, WML>where
WML: RefUnwindSafe,
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