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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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,
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