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

The collapse identifier exceeds the maximum allowed size.

The specified device token was bad. Verify that the request contains a valid token and that the token matches the environment.

The apns_expiration in NotificationOptions is bad.

The apns_id in NotificationOptions is bad.

The apns_priority in NotificationOptions is bad.

The apns_topic in NotificationOptions is bad.

The device token does not match the specified topic.

One or more headers were repeated.

Idle time out.

The device token is not specified in the payload.

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.

The message payload was empty.

Pushing to this topic is not allowed.

The certificate was bad.

The client certificate was for the wrong environment.

The provider token is stale and a new token should be generated.

The specified action is not allowed.

The provider token is not valid or the token signature could not be verified.

No provider certificate was used to connect to APNs and Authorization header was missing or no provider token was specified.

The request path value is bad.

The request method was not POST.

The device token is inactive for the specified topic. You should stop sending notifications to this token.

The message payload was too large (4096 bytes)

The provider token is being updated too often.

Too many requests were made consecutively to the same device token.

An internal server error occurred.

The service is unavailable.

The server is shutting down.

Trait Implementations

impl Debug for ErrorReason
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ErrorReason
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for ErrorReason

impl Sync for ErrorReason