Struct NotificationIcon

Source
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>

Source

pub fn set_icon(&mut self, icon: &'a impl Icon) -> Result<()>

Sets the icon graphics.

Source

pub fn set_icon_hidden_state(&mut self, hidden: bool) -> Result<()>

Allows showing or hiding the icon in the notification area.

Source

pub fn set_tooltip_text(&mut self, text: &str) -> Result<()>

Sets the tooltip text when hovering over the icon with the mouse.

Source

pub fn set_balloon_notification( &mut self, notification: Option<BalloonNotification<'_>>, ) -> Result<()>

Triggers a balloon notification above the notification icon.

Trait Implementations§

Source§

impl<WML> Drop for NotificationIcon<'_, WML>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V