[][src]Struct mailstrom::storage::InternalMessageStatus

pub struct InternalMessageStatus {
    pub message_id: String,
    pub recipients: Vec<InternalRecipientStatus>,
    pub attempts_remaining: u8,
}

An email to be sent (internal format). This is exposed publicly for implementers of MailstromStorage but otherwise should not be needed by users of this library.

Fields

message_id: String

The parsed-out (or generated) message ID

recipients: Vec<InternalRecipientStatus>

The parsed-out list of recipients, and the state each is in. If this is None, then the recipient information has not been determined yet (MX record lookups take some time).

attempts_remaining: u8

Attempts remaining. This counts backwards to zero. If all deliveries are complete (permanent success or failure), it is set to zero.

Per-recipient deferred attempt numbers count upwards, and may get more attempts because a single worker pass may try a recipient on muliple MX servers.

Methods

impl InternalMessageStatus[src]

Trait Implementations

impl Clone for InternalMessageStatus[src]

impl Debug for InternalMessageStatus[src]

impl<'de> Deserialize<'de> for InternalMessageStatus[src]

impl Serialize for InternalMessageStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryFrom<T> for T[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.