Skip to main content

MetadataStore

Trait MetadataStore 

Source
pub trait MetadataStore: Send + Sync {
    // Required methods
    fn get_user_quota<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user: &'life1 Username,
    ) -> Pin<Box<dyn Future<Output = Result<Quota>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn set_user_quota<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user: &'life1 Username,
        quota: Quota,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_mailbox_counters<'life0, 'life1, 'async_trait>(
        &'life0 self,
        mailbox_id: &'life1 MailboxId,
    ) -> Pin<Box<dyn Future<Output = Result<MailboxCounters>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Metadata storage operations

Required Methods§

Source

fn get_user_quota<'life0, 'life1, 'async_trait>( &'life0 self, user: &'life1 Username, ) -> Pin<Box<dyn Future<Output = Result<Quota>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get user quota

Source

fn set_user_quota<'life0, 'life1, 'async_trait>( &'life0 self, user: &'life1 Username, quota: Quota, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Set user quota

Source

fn get_mailbox_counters<'life0, 'life1, 'async_trait>( &'life0 self, mailbox_id: &'life1 MailboxId, ) -> Pin<Box<dyn Future<Output = Result<MailboxCounters>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get mailbox counters

Implementors§