#[non_exhaustive]pub enum Unsubscribed {
Emailed(SentMail),
OneClicked,
OneClickFailed {
failure: OneClickFailure,
mailto_offered: bool,
},
Links(Vec<String>),
MethodNotOffered(UnsubscribeMethod),
NotOffered,
}Expand description
What unsubscribing from a message did.
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.
Emailed(SentMail)
An unsubscribe email to the sender was accepted by SMTP.
OneClicked
The sender’s server accepted a one-click POST (RFC 8058).
OneClickFailed
The one-click POST failed, and nothing else was sent.
Fields
§
failure: OneClickFailureWhy it failed, as a class that carries no server text.
Links(Vec<String>)
The sender offers only these web links, and nothing was sent.
MethodNotOffered(UnsubscribeMethod)
The caller asked for a method the message does not offer. Nothing was sent.
NotOffered
The message has no usable List-Unsubscribe header.
Trait Implementations§
Source§impl Clone for Unsubscribed
impl Clone for Unsubscribed
Source§impl Debug for Unsubscribed
impl Debug for Unsubscribed
impl Eq for Unsubscribed
Source§impl PartialEq for Unsubscribed
impl PartialEq for Unsubscribed
impl StructuralPartialEq for Unsubscribed
Auto Trait Implementations§
impl Forget for Unsubscribed
impl Freeze for Unsubscribed
impl Move for Unsubscribed
impl RefUnwindSafe for Unsubscribed
impl Send for Unsubscribed
impl Sync for Unsubscribed
impl Unpin for Unsubscribed
impl UnsafeUnpin for Unsubscribedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Unsubscribed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.