[][src]Enum web_push::WebPushError

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

Variants

Unspecified

An unknown error happened encrypting the message,

Unauthorized

Please provide valid credentials to send the notification

BadRequest(Option<String>)

Request was badly formed

ServerError(Option<Duration>)

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

NotImplemented

The feature is not implemented yet

InvalidUri

The provided URI is invalid

EndpointNotValid

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

EndpointNotFound

The URL specified is invalid and should not be used again

PayloadTooLarge

Maximum allowed payload size is 3800 characters

TlsError

Could not initialize a TLS connection

SslError

Error in SSL signing

IoError

Error in reading a file

InvalidPackageName

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

InvalidTtl

The TTL value provided was not valid or was not provided

MissingCryptoKeys

The request was missing required crypto keys

InvalidCryptoKeys

One or more of the crypto key elements are invalid.

InvalidResponse

Corrupted response data

Other(String)

Methods

impl WebPushError[src]

pub fn short_description(&self) -> &'static str[src]

Trait Implementations

impl Debug for WebPushError[src]

impl Display for WebPushError[src]

impl Error for WebPushError[src]

impl From<DecodeError> for WebPushError[src]

impl From<Error> for WebPushError[src]

impl From<Error> for WebPushError[src]

impl From<Error> for WebPushError[src]

impl From<Error> for WebPushError[src]

impl From<ErrorStack> for WebPushError[src]

impl From<FromUtf8Error> for WebPushError[src]

impl From<InvalidUri> for WebPushError[src]

impl From<Unspecified> for WebPushError[src]

impl PartialEq<WebPushError> for WebPushError[src]

impl StructuralPartialEq for WebPushError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.