[−][src]Enum a2::response::ErrorReason
A description what went wrong with the push notification.
Variants
BadCollapseId
The collapse identifier exceeds the maximum allowed size.
BadDeviceToken
The specified device token was bad. Verify that the request contains a valid token and that the token matches the environment.
BadExpirationDate
The apns_expiration
in NotificationOptions
is bad.
BadMessageId
The apns_id
in NotificationOptions
is bad.
BadPriority
The apns_priority
in NotificationOptions
is bad.
BadTopic
The apns_topic
in NotificationOptions
is bad.
DeviceTokenNotForTopic
The device token does not match the specified topic.
DuplicateHeaders
One or more headers were repeated.
IdleTimeout
Idle time out.
MissingDeviceToken
The device token is not specified in the payload.
MissingTopic
The apns_topic
of the NotificationOptions
was not specified and was required.
The apns_topic
header is mandatory when the client is connected using the
CertificateConnector
and the included PKCS12 file includes multiple topics,
or when using the TokenConnector
.
PayloadEmpty
The message payload was empty.
TopicDisallowed
Pushing to this topic is not allowed.
BadCertificate
The certificate was bad.
BadCertificateEnvironment
The client certificate was for the wrong environment.
ExpiredProviderToken
The provider token is stale and a new token should be generated.
Forbidden
The specified action is not allowed.
InvalidProviderToken
The provider token is not valid or the token signature could not be verified.
MissingProviderToken
No provider certificate was used to connect to APNs and Authorization header was missing or no provider token was specified.
BadPath
The request path value is bad.
MethodNotAllowed
The request method was not POST
.
Unregistered
The device token is inactive for the specified topic. You should stop sending notifications to this token.
PayloadTooLarge
The message payload was too large (4096 bytes)
TooManyProviderTokenUpdates
The provider token is being updated too often.
TooManyRequests
Too many requests were made consecutively to the same device token.
InternalServerError
An internal server error occurred.
The service is unavailable.
Shutdown
The server is shutting down.
Trait Implementations
impl PartialEq<ErrorReason> for ErrorReason
[src]
fn eq(&self, other: &ErrorReason) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Display for ErrorReason
[src]
impl Debug for ErrorReason
[src]
impl<'de> Deserialize<'de> for ErrorReason
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for ErrorReason
impl Sync for ErrorReason
impl Send for ErrorReason
impl UnwindSafe for ErrorReason
impl RefUnwindSafe for ErrorReason
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,