Enum web_push::WebPushError [] [src]

pub enum WebPushError {
    Unspecified,
    Unauthorized,
    BadRequest(Option<String>),
    ServerError(Option<Duration>),
    NotImplemented,
    InvalidUri,
    TimeoutError,
    EndpointNotValid,
    EndpointNotFound,
    PayloadTooLarge,
    TlsError,
    InvalidPackageName,
    InvalidTtl,
    MissingCryptoKeys,
    InvalidCryptoKeys,
    InvalidResponse,
    Other(String),
}

Variants

An unknown error happened encrypting the message,

Please provide valid credentials to send the notification

Request was badly formed

Contains an optional Duration, until the user can retry the request

The feature is not implemented yet

The provided URI is invalid

The request timed out

The URL specified is no longer valid and should no longer be used

The URL specified is invalid and should not be used again

Maximum allowed payload size is 3800 characters

Could not initialize a TLS connection

Make sure the message was addressed to a registration token whose package name matches the value passed in the request (Google).

The TTL value provided was not valid or was not provided

The request was missing required crypto keys

One or more of the crytpo key elements are invalid.

Corrupted response data

Methods

impl WebPushError
[src]

[src]

Trait Implementations

impl PartialEq for WebPushError
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for WebPushError
[src]

[src]

Formats the value using the given formatter.

impl From<JsonError> for WebPushError
[src]

[src]

Performs the conversion.

impl From<FromUtf8Error> for WebPushError
[src]

[src]

Performs the conversion.

impl From<UriError> for WebPushError
[src]

[src]

Performs the conversion.

impl From<TimeoutError<WebPushResponse>> for WebPushError
[src]

[src]

Performs the conversion.

impl From<Unspecified> for WebPushError
[src]

[src]

Performs the conversion.

impl From<Error> for WebPushError
[src]

[src]

Performs the conversion.

impl Error for WebPushError
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for WebPushError
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a GcmError> for WebPushError
[src]

[src]

Performs the conversion.