Enum web_push::WebPushError [−][src]
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
An unknown error happened encrypting the message,
Please provide valid credentials to send the notification
Request was badly formed
Contains an optional Duration
, until the user can retry the request
The feature is not implemented yet
The provided URI is invalid
The URL specified is no longer valid and should no longer be used
The URL specified is invalid and should not be used again
Maximum allowed payload size is 3800 characters
Could not initialize a TLS connection
Error in SSL signing
Error in reading a file
Make sure the message was addressed to a registration token whose package name matches the value passed in the request (Google).
The TTL value provided was not valid or was not provided
The request was missing required crypto keys
One or more of the crypto key elements are invalid.
Corrupted response data
A claim had invalid data
Other(String)
Tuple Fields of Other
0: String
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for WebPushError
impl Send for WebPushError
impl Sync for WebPushError
impl Unpin for WebPushError
impl UnwindSafe for WebPushError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more