pub trait LoadDatabase<T, FS> {
    // Required method
    fn load_database<'async_trait, P>(
        fs: FS,
        path: P
    ) -> Pin<Box<dyn Future<Output = Result<Database<T, FS>, Error>> + Send + 'async_trait>>
       where T: Send,
             FS: Send,
             P: Into<String> + Send + 'async_trait;
}
Expand description

Capability of loading a database.

Supposed to be specialized for a specific Database.

Required Methods§

source

fn load_database<'async_trait, P>( fs: FS, path: P ) -> Pin<Box<dyn Future<Output = Result<Database<T, FS>, Error>> + Send + 'async_trait>>where T: Send, FS: Send, P: Into<String> + Send + 'async_trait,

Loads a database.

Implementors§

source§

impl<FS> LoadDatabase<f32, FS> for Database<f32, FS>where for<'a> FS: 'a + FileSystem + Send + Sync,