pub trait Connection: ConnectionLike {
    // Required methods
    fn start_transaction<'a, 'async_trait>(
        &'a mut self,
        isolation_level: Option<String>
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait;
    fn as_connection_like(&mut self) -> &mut dyn ConnectionLike;
}

Required Methods§

source

fn start_transaction<'a, 'async_trait>( &'a mut self, isolation_level: Option<String> ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Transaction + 'a>>> + Send + 'async_trait>>where Self: 'async_trait, 'a: 'async_trait,

source

fn as_connection_like(&mut self) -> &mut dyn ConnectionLike

Explicit upcast.

Implementors§