kanidm_unix_resolver::db

Trait 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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Cache for Db

Source§

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