pub enum PushMode {
DeliverOk,
NotConfigured,
Unregistered,
Transient,
Error(PushError),
}Expand description
How a FakePush responds, mirroring MailerMode for the push port.
Error carries the provider text a real adapter would
have wrapped (issue #236). The fixed modes only ever produce clean
strings, so no test using them could show a device token or a push
endpoint arriving somewhere it should not.
Variants§
DeliverOk
Accept and record the notification.
NotConfigured
Report the adapter is not configured (no key).
Unregistered
Report the device token is dead (APNs 410): the caller prunes it.
Transient
A retryable failure.
Error(PushError)
Exactly this error, text and all.
Trait Implementations§
impl Eq for PushMode
impl StructuralPartialEq for PushMode
Auto Trait Implementations§
impl Freeze for PushMode
impl RefUnwindSafe for PushMode
impl Send for PushMode
impl Sync for PushMode
impl Unpin for PushMode
impl UnsafeUnpin for PushMode
impl UnwindSafe for PushMode
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.