Trait tc_transact::fs::Persist [−][src]
pub trait Persist: Sized { type Schema; type Store: Store; fn schema(&self) -> &Self::Schema; #[must_use] fn load<'async_trait>(
schema: Self::Schema,
store: Self::Store,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
where
Self: 'async_trait; }
Defines how to load a persistent data structure from the filesystem.
Associated Types
Loading content...Required methods
fn schema(&self) -> &Self::Schema
[src]
Return the schema of this persistent state.
#[must_use]fn load<'async_trait>(
schema: Self::Schema,
store: Self::Store,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
#[must_use]
fn load<'async_trait>(schema: Self::Schema,
store: Self::Store,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Load a saved state from persistent storage.