[][src]Trait libimagmail::store::MailStore

pub trait MailStore<'a> {
    fn create_mail_from_path<P, CollName>(
        &'a self,
        p: P,
        collection_name: CollName,
        config: &Config
    ) -> Result<FileLockEntry<'a>>
    where
        P: AsRef<Path> + Debug,
        CollName: AsRef<str> + Debug
;
fn get_mail_from_path<P>(
        &'a self,
        p: P
    ) -> Result<Option<FileLockEntry<'a>>>
    where
        P: AsRef<Path> + Debug
;
fn retrieve_mail_from_path<P, CollName>(
        &'a self,
        p: P,
        collection_name: CollName,
        config: &Config
    ) -> Result<FileLockEntry<'a>>
    where
        P: AsRef<Path> + Debug,
        CollName: AsRef<str> + Debug
;
fn get_mail(&'a self, mid: MessageId) -> Result<Option<FileLockEntry<'a>>>;
fn all_mails(&'a self) -> Result<Entries<'a>>; }

Required methods

fn create_mail_from_path<P, CollName>(
    &'a self,
    p: P,
    collection_name: CollName,
    config: &Config
) -> Result<FileLockEntry<'a>> where
    P: AsRef<Path> + Debug,
    CollName: AsRef<str> + Debug

fn get_mail_from_path<P>(&'a self, p: P) -> Result<Option<FileLockEntry<'a>>> where
    P: AsRef<Path> + Debug

fn retrieve_mail_from_path<P, CollName>(
    &'a self,
    p: P,
    collection_name: CollName,
    config: &Config
) -> Result<FileLockEntry<'a>> where
    P: AsRef<Path> + Debug,
    CollName: AsRef<str> + Debug

fn get_mail(&'a self, mid: MessageId) -> Result<Option<FileLockEntry<'a>>>

fn all_mails(&'a self) -> Result<Entries<'a>>

Loading content...

Implementations on Foreign Types

impl<'a> MailStore<'a> for Store[src]

fn get_mail_from_path<P>(&'a self, p: P) -> Result<Option<FileLockEntry<'a>>> where
    P: AsRef<Path> + Debug
[src]

Same as MailStore::retrieve_mail_from_path() but uses Store::get() instead of Store::retrieve()

Loading content...

Implementors

Loading content...