pub struct NotificationHandle { /* private fields */ }Expand description
A handle to a notification.
Implementations§
Source§impl NotificationHandle
impl NotificationHandle
Sourcepub fn app_name(&self) -> String
pub fn app_name(&self) -> String
Returns the name of the application that sent the notification. Can be blank.
Sourcepub fn icon(&self) -> Option<String>
pub fn icon(&self) -> Option<String>
Returns the optional icon of the notification.
It is either file path or icon name.
Sourcepub fn actions(&self) -> Vec<ActionHandle>
pub fn actions(&self) -> Vec<ActionHandle>
Returns vector of action handles. Can be empty.
Trait Implementations§
Source§impl Clone for NotificationHandle
impl Clone for NotificationHandle
Source§fn clone(&self) -> NotificationHandle
fn clone(&self) -> NotificationHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for NotificationHandle
impl !UnwindSafe for NotificationHandle
impl Freeze for NotificationHandle
impl Send for NotificationHandle
impl Sync for NotificationHandle
impl Unpin for NotificationHandle
impl UnsafeUnpin for NotificationHandle
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