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§
source§impl<'a> Error for Error
impl<'a> Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<'a> From<Error> for Error
impl<'a> From<Error> for Error
source§fn from(_: SerdeError) -> Error
fn from(_: SerdeError) -> Error
Converts to this type from the input type.
source§impl<'a> From<ErrorStack> for Error
impl<'a> From<ErrorStack> for Error
source§fn from(e: ErrorStack) -> Error
fn from(e: ErrorStack) -> Error
Converts to this type from the input type.
source§impl From<TimeoutError<FutureResponse>> for Error
impl From<TimeoutError<FutureResponse>> for Error
source§fn from(_: TimeoutError<FutureResponse>) -> Error
fn from(_: TimeoutError<FutureResponse>) -> Error
Converts to this type from the input type.