Struct mailstrom::message_status::InternalMessageStatus [−][src]
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]
impl InternalMessageStatus
pub fn as_message_status(&self) -> MessageStatus
[src]
pub fn as_message_status(&self) -> MessageStatus
Trait Implementations
impl Debug for InternalMessageStatus
[src]
impl Debug for InternalMessageStatus
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for InternalMessageStatus
[src]
impl Clone for InternalMessageStatus
fn clone(&self) -> InternalMessageStatus
[src]
fn clone(&self) -> InternalMessageStatus
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for InternalMessageStatus
impl Send for InternalMessageStatus
impl Sync for InternalMessageStatus
impl Sync for InternalMessageStatus