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.

Required Associated Types

Required Methods

Return the schema of this persistent state.

Load a saved state from persistent storage.

Implementors