Trait tc_transact::fs::Persist
source · [−]pub trait Persist<D: Dir>: Sized {
type Schema;
type Store: Store;
type Txn: Transaction<D>;
fn schema(&self) -> &Self::Schema;
fn load<'life0, 'async_trait>(
txn: &'life0 Self::Txn,
schema: Self::Schema,
store: Self::Store
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Defines how to load a persistent data structure from the filesystem.