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

Required Methods§

source

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

Implementors§

source§

impl<T> DirCreateItem<T> for Dir<T>
where T: DirItem + Route<State> + Debug, DirEntry<T>: Clone,

Defines a method to create a new item in this Dir.