Struct mailstrom::MemoryStorage [] [src]

pub struct MemoryStorage(_);

Methods

impl MemoryStorage
[src]

Trait Implementations

impl Default for MemoryStorage
[src]

[src]

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

impl MailstromStorage for MemoryStorage
[src]

[src]

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

[src]

Update the status of an email

[src]

Retrieve a PreparedEmail and InternalMessageStatus based on the message_id

[src]

Retrieve an InternalMessageStatus based on the message_id

[src]

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

[src]

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