pub struct NotificationIconOptions<I, S> {
pub icon_id: NotificationIconId,
pub icon: Option<I>,
pub tooltip_text: Option<S>,
pub visible: bool,
}
Available on crate feature
ui
only.Expand description
Options for a new notification icon used by Window::add_notification_icon
.
Fields§
§icon_id: NotificationIconId
§icon: Option<I>
§tooltip_text: Option<S>
§visible: bool
Trait Implementations§
Source§impl<I: Default, S: Default> Default for NotificationIconOptions<I, S>
impl<I: Default, S: Default> Default for NotificationIconOptions<I, S>
Source§fn default() -> NotificationIconOptions<I, S>
fn default() -> NotificationIconOptions<I, S>
Returns the “default value” for a type. Read more
Source§impl<I: PartialEq, S: PartialEq> PartialEq for NotificationIconOptions<I, S>
impl<I: PartialEq, S: PartialEq> PartialEq for NotificationIconOptions<I, S>
Source§fn eq(&self, other: &NotificationIconOptions<I, S>) -> bool
fn eq(&self, other: &NotificationIconOptions<I, S>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<I: Eq, S: Eq> Eq for NotificationIconOptions<I, S>
impl<I, S> StructuralPartialEq for NotificationIconOptions<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for NotificationIconOptions<I, S>
impl<I, S> RefUnwindSafe for NotificationIconOptions<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for NotificationIconOptions<I, S>
impl<I, S> Sync for NotificationIconOptions<I, S>
impl<I, S> Unpin for NotificationIconOptions<I, S>
impl<I, S> UnwindSafe for NotificationIconOptions<I, S>where
I: UnwindSafe,
S: UnwindSafe,
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