[−][src]Enum web_push::WebPushError
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
Other(String)
Methods
impl WebPushError
[src]
pub fn short_description(&self) -> &'static str
[src]
Trait Implementations
impl PartialEq<WebPushError> for WebPushError
[src]
fn eq(&self, other: &WebPushError) -> bool
[src]
fn ne(&self, other: &WebPushError) -> bool
[src]
impl From<Error> for WebPushError
[src]
fn from(_: JsonError) -> WebPushError
[src]
impl From<FromUtf8Error> for WebPushError
[src]
fn from(_: FromUtf8Error) -> WebPushError
[src]
impl From<InvalidUri> for WebPushError
[src]
fn from(_: InvalidUri) -> WebPushError
[src]
impl From<Unspecified> for WebPushError
[src]
fn from(_: Unspecified) -> WebPushError
[src]
impl From<Error> for WebPushError
[src]
impl From<Error> for WebPushError
[src]
fn from(_: Error) -> WebPushError
[src]
impl From<Error> for WebPushError
[src]
fn from(_: IoError) -> WebPushError
[src]
impl From<ErrorStack> for WebPushError
[src]
fn from(_: ErrorStack) -> WebPushError
[src]
impl From<DecodeError> for WebPushError
[src]
fn from(_: DecodeError) -> WebPushError
[src]
impl Display for WebPushError
[src]
impl Debug for WebPushError
[src]
impl Error for WebPushError
[src]
Auto Trait Implementations
impl Unpin for WebPushError
impl Sync for WebPushError
impl Send for WebPushError
impl UnwindSafe for WebPushError
impl RefUnwindSafe for WebPushError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,