pub struct PushOutcome {
pub token: DeviceToken,
pub status: PushDeliveryStatus,
}Expand description
What happened to one notification, keyed by the token it was addressed to.
Fields§
§token: DeviceTokenThe device token the notification was addressed to.
status: PushDeliveryStatusThe delivery state the provider reported.
Implementations§
Source§impl PushOutcome
impl PushOutcome
Sourcepub const fn is_token_dead(&self) -> bool
pub const fn is_token_dead(&self) -> bool
Returns whether the token should be deleted from the caller’s store.
True only for PushRejection::DeviceNotRegistered. Every other
rejection describes the notification, not the token.
Trait Implementations§
Source§impl Clone for PushOutcome
impl Clone for PushOutcome
Source§impl Debug for PushOutcome
impl Debug for PushOutcome
impl Eq for PushOutcome
Source§impl PartialEq for PushOutcome
impl PartialEq for PushOutcome
impl StructuralPartialEq for PushOutcome
Auto Trait Implementations§
impl Freeze for PushOutcome
impl RefUnwindSafe for PushOutcome
impl Send for PushOutcome
impl Sync for PushOutcome
impl Unpin for PushOutcome
impl UnsafeUnpin for PushOutcome
impl UnwindSafe for PushOutcome
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.