Enum a2::error::Error [−][src]
pub enum Error { SerializeError, ConnectionError, TimeoutError, SignerError(String), ResponseError(Response), InvalidOptions(String), TlsError(String), ReadError(String), }
Variants
SerializeError
User request or Apple response JSON data was faulty.
ConnectionError
A problem connecting to APNs servers.
TimeoutError
APNs couldn't response in a timely manner, if using send_with_timeout
SignerError(String)
Couldn't generate an APNs token with the given key.
ResponseError(Response)
APNs couldn't accept the notification. Contains Response with additional information.
InvalidOptions(String)
Invalid option values given in NotificationOptions
TlsError(String)
TLS connection failed
ReadError(String)
Error reading the certificate or private key.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Display for Error
[src]
impl<'a> Display for Error
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> StdError for Error
[src]
impl<'a> StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more
impl From<TimeoutError<FutureResponse>> for Error
[src]
impl From<TimeoutError<FutureResponse>> for Error
fn from(_: TimeoutError<FutureResponse>) -> Error
[src]
fn from(_: TimeoutError<FutureResponse>) -> Error
Performs the conversion.
impl<'a> From<SerdeError> for Error
[src]
impl<'a> From<SerdeError> for Error
fn from(_: SerdeError) -> Error
[src]
fn from(_: SerdeError) -> Error
Performs the conversion.
impl<'a> From<ErrorStack> for Error
[src]
impl<'a> From<ErrorStack> for Error
fn from(e: ErrorStack) -> Error
[src]
fn from(e: ErrorStack) -> Error
Performs the conversion.
impl<'a> From<IoError> for Error
[src]
impl<'a> From<IoError> for Error