Trait Transaction

Source
pub trait Transaction: Send + Sync {
    // Required methods
    fn query<'life0, 'async_trait>(
        &'life0 mut self,
        query: Query,
    ) -> Pin<Box<dyn Future<Output = YdbResult<QueryResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn commit<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = YdbResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn rollback<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = YdbResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn transaction_info<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = YdbResult<TransactionInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn query<'life0, 'async_trait>( &'life0 mut self, query: Query, ) -> Pin<Box<dyn Future<Output = YdbResult<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn commit<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = YdbResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn rollback<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = YdbResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn transaction_info<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = YdbResult<TransactionInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§