pub enum WebPushError {
Show 19 variants
Unspecified,
Unauthorized,
BadRequest(Option<String>),
ServerError(Option<Duration>),
NotImplemented,
InvalidUri,
EndpointNotValid,
EndpointNotFound,
PayloadTooLarge,
TlsError,
SslError,
IoError,
InvalidPackageName,
InvalidTtl,
MissingCryptoKeys,
InvalidCryptoKeys,
InvalidResponse,
InvalidClaims,
Other(String),
}
Variants§
Unspecified
An unknown error happened encrypting the message,
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
InvalidClaims
A claim had invalid data
Other(String)
Implementations§
Source§impl WebPushError
impl WebPushError
pub fn short_description(&self) -> &'static str
Trait Implementations§
Source§impl Clone for WebPushError
impl Clone for WebPushError
Source§fn clone(&self) -> WebPushError
fn clone(&self) -> WebPushError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more