pub struct Mailstrom<S: MailstromStorage + 'static> { /* private fields */ }

Implementations

Create a new Mailstrom instance for sending emails.

Mailstrom requires an explicit start command to start sending emails. This is because some clients are only interested in reading the status of sent emails, and will terminate before any real sending can be accomplished.

Ask Mailstrom to die. This is not required, you can simply let it fall out of scope and it will clean itself up.

Determine the status of the worker

Send an email, getting back its message-id

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.