pub struct Messaging { /* private fields */ }Implementations§
Source§impl Messaging
impl Messaging
pub fn app(&self) -> &FirebaseApp
Sourcepub async fn request_permission(&self) -> MessagingResult<PermissionState>
pub async fn request_permission(&self) -> MessagingResult<PermissionState>
Requests browser notification permission.
Port of the permission flow triggered by
packages/messaging/src/api/getToken.ts in the Firebase JS SDK.
pub async fn get_token( &self, vapid_key: Option<&str>, ) -> MessagingResult<String>
pub async fn delete_token(&self) -> MessagingResult<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Messaging
impl RefUnwindSafe for Messaging
impl Send for Messaging
impl Sync for Messaging
impl Unpin for Messaging
impl UnwindSafe for Messaging
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