pub struct Notifications<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> Notifications<R>
impl<R: Runtime> Notifications<R>
pub fn builder(&self) -> NotificationsBuilder<R>
pub fn request_permission(&self) -> Result<PermissionState>
pub fn register_for_push_notifications(&self) -> Result<String>
pub fn permission_state(&self) -> Result<PermissionState>
Auto Trait Implementations§
impl<R> Freeze for Notifications<R>
impl<R> !RefUnwindSafe for Notifications<R>
impl<R> Send for Notifications<R>
impl<R> Sync for Notifications<R>
impl<R> Unpin for Notifications<R>
impl<R> !UnwindSafe for Notifications<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