Struct mailstrom::MemoryStorage
[−]
[src]
pub struct MemoryStorage { /* fields omitted */ }
Methods
impl MemoryStorage
[src]
fn new() -> MemoryStorage
Trait Implementations
impl MailstromStorage for MemoryStorage
[src]
type Error = MemoryStorageError
fn store(
&mut self,
email: &Email,
internal_status: &InternalStatus
) -> Result<(), MemoryStorageError>
&mut self,
email: &Email,
internal_status: &InternalStatus
) -> Result<(), MemoryStorageError>
Store an Email
. This should overwrite if message-id matches an existing email.
fn update_status(
&mut self,
internal_status: &InternalStatus
) -> Result<(), MemoryStorageError>
&mut self,
internal_status: &InternalStatus
) -> Result<(), MemoryStorageError>
Update the status of an email
fn retrieve(
&self,
message_id: &str
) -> Result<(Email, InternalStatus), MemoryStorageError>
&self,
message_id: &str
) -> Result<(Email, InternalStatus), MemoryStorageError>
Retrieve an Email
and InternalStatus
based on the message_id
fn retrieve_status(
&self,
message_id: &str
) -> Result<InternalStatus, MemoryStorageError>
&self,
message_id: &str
) -> Result<InternalStatus, MemoryStorageError>
Retrieve an InternalStatus
based on the message_id
fn retrieve_all_incomplete(&self) -> Result<Vec<InternalStatus>, Self::Error>
Retrieve all incomplete emails (status only). This is used to continue retrying after shutdown and later startup. Read more