#[non_exhaustive]pub enum OneClickFailure {
InvalidLink,
Blocked,
Unreachable,
Tls,
Timeout,
Redirected,
Rejected,
BadResponse,
}Expand description
Why a one-click unsubscribe POST failed. Never carries server text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidLink
The link is not a plain https link on port 443 without credentials.
Blocked
The link’s host is a private, local or otherwise non-public address, so it was not contacted.
Unreachable
The sender’s server could not be found or connected to.
Tls
The sender’s server did not present a valid certificate for its name.
Timeout
The sender’s server did not answer in time.
Redirected
The sender’s server answered with a redirect, which is never followed.
Rejected
The sender’s server answered with an error status.
BadResponse
The sender’s server sent a reply that is not valid HTTP.
Trait Implementations§
Source§impl Clone for OneClickFailure
impl Clone for OneClickFailure
impl Copy for OneClickFailure
Source§impl Debug for OneClickFailure
impl Debug for OneClickFailure
Source§impl Display for OneClickFailure
impl Display for OneClickFailure
impl Eq for OneClickFailure
Source§impl Error for OneClickFailure
impl Error for OneClickFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OneClickFailure
impl PartialEq for OneClickFailure
impl StructuralPartialEq for OneClickFailure
Auto Trait Implementations§
impl Forget for OneClickFailure
impl Freeze for OneClickFailure
impl Move for OneClickFailure
impl RefUnwindSafe for OneClickFailure
impl Send for OneClickFailure
impl Sync for OneClickFailure
impl Unpin for OneClickFailure
impl UnsafeUnpin for OneClickFailure
impl UnwindSafe for OneClickFailure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more