pub trait LoadPartition<'db, T> {
    // Required method
    fn load_partition<'async_trait>(
        &'db self,
        index: usize
    ) -> Pin<Box<dyn Future<Output = Result<&'db Partition<T>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'db: 'async_trait;
}
Expand description

Capability of loading a single partition.

Supposed to be specialized for a specific Database.

Required Methods§

source

fn load_partition<'async_trait>( &'db self, index: usize ) -> Pin<Box<dyn Future<Output = Result<&'db Partition<T>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'db: 'async_trait,

Loads a specified partition of the database.

Fails if index is out of bounds.

Implementors§

source§

impl<'db, FS> LoadPartition<'db, f32> for Database<f32, FS>where FS: FileSystem + Send + Sync, Self: 'db,