pub trait DirItem: Persist<CacheBlock, Txn = Txn, Schema = ()> + Transact + Clone + Send + Sync {
    type Schema;
    type Version;

    // Required method
    fn create_version<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn: &'life1 Txn,
        number: VersionNumber,
        schema: <Self as DirItem>::Schema
    ) -> Pin<Box<dyn Future<Output = TCResult<Self::Version>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Defines methods common to any item in a Dir.

Required Associated Types§

Required Methods§

source

fn create_version<'life0, 'life1, 'async_trait>( &'life0 self, txn: &'life1 Txn, number: VersionNumber, schema: <Self as DirItem>::Schema ) -> Pin<Box<dyn Future<Output = TCResult<Self::Version>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a new Self::Version of this DirItem.

Object Safety§

This trait is not object safe.

Implementors§