pub enum PushReceipt {
Delivered,
Rejected(PushRejection),
}Expand description
The settled receipt for one accepted notification.
Variants§
Delivered
The provider handed the notification to the device platform.
Rejected(PushRejection)
The provider refused the notification after accepting it.
Implementations§
Source§impl PushReceipt
impl PushReceipt
Sourcepub const fn is_token_dead(&self) -> bool
pub const fn is_token_dead(&self) -> bool
Returns whether the token the notification went to should be deleted.
True only for PushRejection::DeviceNotRegistered.
Trait Implementations§
Source§impl Clone for PushReceipt
impl Clone for PushReceipt
Source§impl Debug for PushReceipt
impl Debug for PushReceipt
impl Eq for PushReceipt
Source§impl From<PushReceipt> for PushDeliveryStatus
impl From<PushReceipt> for PushDeliveryStatus
Source§fn from(receipt: PushReceipt) -> Self
fn from(receipt: PushReceipt) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PushReceipt
impl PartialEq for PushReceipt
impl StructuralPartialEq for PushReceipt
Auto Trait Implementations§
impl Freeze for PushReceipt
impl RefUnwindSafe for PushReceipt
impl Send for PushReceipt
impl Sync for PushReceipt
impl Unpin for PushReceipt
impl UnsafeUnpin for PushReceipt
impl UnwindSafe for PushReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.