pub trait DatabaseHandler {
    type DB: Database + 'static;

    // Required method
    fn open<'life0, 'async_trait>(
        &'life0 self,
        state: Rc<RefCell<OpState>>,
        path: Option<String>
    ) -> Pin<Box<dyn Future<Output = Result<Self::DB, AnyError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

source

type DB: Database + 'static

Required Methods§

source

fn open<'life0, 'async_trait>( &'life0 self, state: Rc<RefCell<OpState>>, path: Option<String> ) -> Pin<Box<dyn Future<Output = Result<Self::DB, AnyError>> + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§