Struct mailstrom::MemoryStorage[][src]

pub struct MemoryStorage(_);

Methods

impl MemoryStorage
[src]

Trait Implementations

impl Default for MemoryStorage
[src]

Returns the "default value" for a type. Read more

impl MailstromStorage for MemoryStorage
[src]

Store a PreparedEmail. This should overwrite if message-id matches an existing email. Read more

Update the status of an email

Retrieve a PreparedEmail and InternalMessageStatus based on the message_id

Retrieve an InternalMessageStatus based on the message_id

Retrieve all incomplete emails (status only). This is used to continue retrying after shutdown and later startup. Read more

Retrieve all incomplete emails as well as all complete emails that have become complete since the last time this function was called. This can be implemented by storing a retrieved boolean as falswe when update_status saves as complete, and setting that boolean to true when this function is run. Read more

Auto Trait Implementations