pub trait AsyncQuery<T>: AsyncTransaction {
    // Required method
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        query: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<T, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl AsyncQuery<Vec<Migration>> for Pool

source§

fn query<'life0, 'life1, 'async_trait>( &'life0 mut self, query: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, <Self as AsyncTransaction>::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl AsyncQuery<Vec<Migration>> for Client

source§

fn query<'life0, 'life1, 'async_trait>( &'life0 mut self, query: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, <Self as AsyncTransaction>::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl<S> AsyncQuery<Vec<Migration>> for Client<S>
where S: AsyncRead + AsyncWrite + Unpin + Send,

source§

fn query<'life0, 'life1, 'async_trait>( &'life0 mut self, query: &'life1 str ) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, <Self as AsyncTransaction>::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§