Trait ExecutorFactory

Source
pub trait ExecutorFactory<T: Executor>: Send + Sync {
    // Required methods
    fn default_executor<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn txn_executor<'a, 'life0, 'async_trait>(
        &'life0 self,
        default_executor: &'a mut T,
    ) -> Pin<Box<dyn Future<Output = Result<T::Transaction<'a>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Factory for creating default and transaction query executors.

Required Methods§

Source

fn default_executor<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn txn_executor<'a, 'life0, 'async_trait>( &'life0 self, default_executor: &'a mut T, ) -> Pin<Box<dyn Future<Output = Result<T::Transaction<'a>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Implementors§