Skip to main content

AsyncQuery

Trait AsyncQuery 

Source
pub trait AsyncQuery<T>: AsyncTransaction {
    // Required method
    fn query<'a>(
        &'a mut self,
        query: &'a str,
    ) -> impl Future<Output = Result<T, Self::Error>> + Send + 'a;
}

Required Methods§

Source

fn query<'a>( &'a mut self, query: &'a str, ) -> impl Future<Output = Result<T, Self::Error>> + Send + 'a

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AsyncQuery<Vec<Migration>> for Client

Source§

async fn query( &mut self, query: &str, ) -> Result<Vec<Migration>, <Self as AsyncTransaction>::Error>

Source§

impl AsyncQuery<Vec<Migration>> for Pool

Source§

async fn query( &mut self, query: &str, ) -> Result<Vec<Migration>, <Self as AsyncTransaction>::Error>

Source§

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

Source§

async fn query<'a>( &'a mut self, query: &'a str, ) -> Result<Vec<Migration>, <Self as AsyncTransaction>::Error>

Implementors§