Struct cacao::user_notifications::NotificationCenter
source · [−]pub struct NotificationCenter;
Available on crate feature
user-notifications
only.Expand description
Acts as a central interface to the Notification Center on macOS.
Implementations
sourceimpl NotificationCenter
impl NotificationCenter
Requests authorization from the user to send them notifications.
sourcepub fn notify(notification: Notification)
pub fn notify(notification: Notification)
Queues up a Notification
to be displayed to the user.
sourcepub fn remove_all_delivered_notifications()
pub fn remove_all_delivered_notifications()
Removes all notifications that have been delivered (e.g, in the notification center).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NotificationCenter
impl Send for NotificationCenter
impl Sync for NotificationCenter
impl Unpin for NotificationCenter
impl UnwindSafe for NotificationCenter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more