Trait kanidm_unix_resolver::db::Cache

source ·
pub trait Cache {
    type Txn<'db>
       where Self: 'db;

    // Required method
    fn write<'db, 'async_trait>(
        &'db self,
    ) -> Pin<Box<dyn Future<Output = Self::Txn<'db>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'db: 'async_trait;
}

Required Associated Types§

source

type Txn<'db> where Self: 'db

Required Methods§

source

fn write<'db, 'async_trait>( &'db self, ) -> Pin<Box<dyn Future<Output = Self::Txn<'db>> + Send + 'async_trait>>
where Self: 'async_trait, 'db: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Cache for Db

source§

type Txn<'db> = DbTxn<'db>