AsyncTransaction

Trait AsyncTransaction 

Source
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

Source§

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

Source§

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,

Source§

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§