kanidm_unix_resolver::db

Trait KeyStore

Source
pub trait KeyStore {
    type Txn<'db>
       where Self: 'db;

    // Required method
    fn write_keystore<'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_keystore<'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§