Enum a2::response::ErrorReason [−][src]
pub enum ErrorReason {
BadCollapseId,
BadDeviceToken,
BadExpirationDate,
BadMessageId,
BadPriority,
BadTopic,
DeviceTokenNotForTopic,
DuplicateHeaders,
IdleTimeout,
MissingDeviceToken,
MissingTopic,
PayloadEmpty,
TopicDisallowed,
BadCertificate,
BadCertificateEnvironment,
ExpiredProviderToken,
Forbidden,
InvalidProviderToken,
MissingProviderToken,
BadPath,
MethodNotAllowed,
Unregistered,
PayloadTooLarge,
TooManyProviderTokenUpdates,
TooManyRequests,
InternalServerError,
ServiceUnavailable,
Shutdown,
}A description what went wrong with the push notification.
Variants
BadCollapseIdThe collapse identifier exceeds the maximum allowed size.
BadDeviceTokenThe specified device token was bad. Verify that the request contains a valid token and that the token matches the environment.
BadExpirationDateThe apns_expiration in NotificationOptions is bad.
BadMessageIdThe apns_id in NotificationOptions is bad.
BadPriorityThe apns_priority in NotificationOptions is bad.
BadTopicThe apns_topic in NotificationOptions is bad.
DeviceTokenNotForTopicThe device token does not match the specified topic.
DuplicateHeadersOne or more headers were repeated.
IdleTimeoutIdle time out.
MissingDeviceTokenThe device token is not specified in the payload.
MissingTopicThe 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.
PayloadEmptyThe message payload was empty.
TopicDisallowedPushing to this topic is not allowed.
BadCertificateThe certificate was bad.
BadCertificateEnvironmentThe client certificate was for the wrong environment.
ExpiredProviderTokenThe provider token is stale and a new token should be generated.
ForbiddenThe specified action is not allowed.
InvalidProviderTokenThe provider token is not valid or the token signature could not be verified.
MissingProviderTokenNo provider certificate was used to connect to APNs and Authorization header was missing or no provider token was specified.
BadPathThe request path value is bad.
MethodNotAllowedThe request method was not POST.
UnregisteredThe device token is inactive for the specified topic. You should stop sending notifications to this token.
PayloadTooLargeThe message payload was too large (4096 bytes)
TooManyProviderTokenUpdatesThe provider token is being updated too often.
TooManyRequestsToo many requests were made consecutively to the same device token.
InternalServerErrorAn internal server error occurred.
The service is unavailable.
ShutdownThe server is shutting down.
Trait Implementations
impl Debug for ErrorReason[src]
impl Debug for ErrorReasonfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ErrorReason[src]
impl PartialEq for ErrorReasonAuto Trait Implementations
impl Send for ErrorReason
impl Send for ErrorReasonimpl Sync for ErrorReason
impl Sync for ErrorReason