Struct mailstrom::MemoryStorage [−][src]
pub struct MemoryStorage(_);
Methods
impl MemoryStorage
[src]
impl MemoryStorage
pub fn new() -> MemoryStorage
[src]
pub fn new() -> MemoryStorage
Trait Implementations
impl Default for MemoryStorage
[src]
impl Default for MemoryStorage
fn default() -> MemoryStorage
[src]
fn default() -> MemoryStorage
Returns the "default value" for a type. Read more
impl MailstromStorage for MemoryStorage
[src]
impl MailstromStorage for MemoryStorage
type Error = MemoryStorageError
fn store(
&mut self,
email: PreparedEmail,
internal_message_status: InternalMessageStatus
) -> Result<(), MemoryStorageError>
[src]
fn store(
&mut self,
email: PreparedEmail,
internal_message_status: InternalMessageStatus
) -> Result<(), MemoryStorageError>
Store a PreparedEmail
. This should overwrite if message-id matches an existing email. Read more
fn update_status(
&mut self,
internal_message_status: InternalMessageStatus
) -> Result<(), MemoryStorageError>
[src]
fn update_status(
&mut self,
internal_message_status: InternalMessageStatus
) -> Result<(), MemoryStorageError>
Update the status of an email
fn retrieve(
&self,
message_id: &str
) -> Result<(PreparedEmail, InternalMessageStatus), MemoryStorageError>
[src]
fn retrieve(
&self,
message_id: &str
) -> Result<(PreparedEmail, InternalMessageStatus), MemoryStorageError>
Retrieve a PreparedEmail
and InternalMessageStatus
based on the message_id
fn retrieve_status(
&self,
message_id: &str
) -> Result<InternalMessageStatus, MemoryStorageError>
[src]
fn retrieve_status(
&self,
message_id: &str
) -> Result<InternalMessageStatus, MemoryStorageError>
Retrieve an InternalMessageStatus
based on the message_id
fn retrieve_all_incomplete(
&self
) -> Result<Vec<InternalMessageStatus>, Self::Error>
[src]
fn retrieve_all_incomplete(
&self
) -> Result<Vec<InternalMessageStatus>, Self::Error>
Retrieve all incomplete emails (status only). This is used to continue retrying after shutdown and later startup. Read more
fn retrieve_all_recent(
&mut self
) -> Result<Vec<InternalMessageStatus>, Self::Error>
[src]
fn retrieve_all_recent(
&mut self
) -> Result<Vec<InternalMessageStatus>, Self::Error>
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
impl Send for MemoryStorage
impl Send for MemoryStorage
impl Sync for MemoryStorage
impl Sync for MemoryStorage