Trait tc_transact::fs::Persist[][src]

pub trait Persist<D: Dir, T: Transaction<D>>: Sized {
    type Schema;
    type Store: Store;
    fn schema(&self) -> &Self::Schema;
#[must_use] fn load<'life0, 'async_trait>(
        txn: &'life0 T,
        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.

Associated Types

Loading content...

Required methods

fn schema(&self) -> &Self::Schema[src]

Expand description

Return the schema of this persistent state.

#[must_use]
fn load<'life0, 'async_trait>(
    txn: &'life0 T,
    schema: Self::Schema,
    store: Self::Store
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Expand description

Load a saved state from persistent storage.

Loading content...

Implementors

Loading content...