[−][src]Enum web_push::WebPushError
Variants
UnspecifiedAn 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
NotImplementedThe feature is not implemented yet
InvalidUriThe provided URI is invalid
TimeoutErrorThe request timed out
EndpointNotValidThe URL specified is no longer valid and should no longer be used
EndpointNotFoundThe URL specified is invalid and should not be used again
PayloadTooLargeMaximum allowed payload size is 3800 characters
TlsErrorCould not initialize a TLS connection
SslErrorError in SSL signing
IoErrorError in reading a file
InvalidPackageNameMake sure the message was addressed to a registration token whose package name matches the value passed in the request (Google).
InvalidTtlThe TTL value provided was not valid or was not provided
MissingCryptoKeysThe request was missing required crypto keys
InvalidCryptoKeysOne or more of the crypto key elements are invalid.
InvalidResponseCorrupted 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<TimeoutError<WebPushResponse>> for WebPushError[src]
fn from(_: TimeoutError<WebPushResponse>) -> WebPushError[src]
impl From<Unspecified> for WebPushError[src]
fn from(_: Unspecified) -> 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 Send for WebPushError
impl Sync for WebPushError
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom 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 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,