pub trait DirCreate: Sized {
    // Required method
    fn create_dir<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn: &'life1 Txn,
        name: PathSegment,
        link: Link
    ) -> Pin<Box<dyn Future<Output = TCResult<Cluster<Self>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn create_dir<'life0, 'life1, 'async_trait>( &'life0 self, txn: &'life1 Txn, name: PathSegment, link: Link ) -> Pin<Box<dyn Future<Output = TCResult<Cluster<Self>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Send + Sync> DirCreate for Dir<T>
where DirEntry<T>: Clone, Cluster<Self>: Clone, Self: Persist<CacheBlock, Txn = Txn, Schema = Schema> + Route<State> + Debug,

Defines a method to create a new subdirectory in a Dir.