pub struct Notification<R: Runtime>(/* private fields */);
Expand description
Access to the notification APIs.
You can get an instance of this type via NotificationExt
Implementations§
Source§impl<R: Runtime> Notification<R>
impl<R: Runtime> Notification<R>
pub fn builder(&self) -> NotificationBuilder<R>
pub fn request_permission(&self) -> Result<PermissionState>
pub fn permission_state(&self) -> Result<PermissionState>
Auto Trait Implementations§
impl<R> Freeze for Notification<R>
impl<R> !RefUnwindSafe for Notification<R>
impl<R> Send for Notification<R>
impl<R> Sync for Notification<R>
impl<R> Unpin for Notification<R>
impl<R> !UnwindSafe for Notification<R>
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