pub trait AsyncTransaction {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn execute<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        query: &'life1 [&'life2 str]
    ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, query: &'life1 [&'life2 str] ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementations on Foreign Types§

source§

impl AsyncTransaction for Pool

§

type Error = Error

source§

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, queries: &'life1 [&'life2 str] ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source§

impl AsyncTransaction for Client

§

type Error = Error

source§

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, queries: &'life1 [&'life2 str] ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source§

impl<S> AsyncTransaction for Client<S>
where S: AsyncRead + AsyncWrite + Unpin + Send,

§

type Error = Error

source§

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, queries: &'life1 [&'life2 str] ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§