pub trait ClosureInstance<State: StateInstance>: Send + Sync {
    // Required method
    fn call<'async_trait>(
        self: Box<Self>,
        txn: State::Txn,
        args: State
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

source

fn call<'async_trait>( self: Box<Self>, txn: State::Txn, args: State ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where Self: 'async_trait,

Execute this ClosureInstance with the given args

Implementors§