Enum a2::error::Error[][src]

pub enum Error {
    SerializeError,
    ConnectionError,
    TimeoutError,
    SignerError(String),
    ResponseError(Response),
    InvalidOptions(String),
    TlsError(String),
    ReadError(String),
}

Variants

User request or Apple response JSON data was faulty.

A problem connecting to APNs servers.

APNs couldn't response in a timely manner, if using send_with_timeout

Couldn't generate an APNs token with the given key.

APNs couldn't accept the notification. Contains Response with additional information.

Invalid option values given in NotificationOptions

TLS connection failed

Error reading the certificate or private key.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl<'a> Display for Error
[src]

Formats the value using the given formatter. Read more

impl<'a> StdError for Error
[src]

This method is soft-deprecated. Read more

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

impl From<TimeoutError<FutureResponse>> for Error
[src]

Performs the conversion.

impl<'a> From<SerdeError> for Error
[src]

Performs the conversion.

impl<'a> From<ErrorStack> for Error
[src]

Performs the conversion.

impl<'a> From<IoError> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error