Trait AsyncRunQueryDsl

Source
pub trait AsyncRunQueryDsl<Conn, AsyncConn>
where Conn: 'static + Connection,
{ // Required methods fn execute_async<'life0, 'async_trait>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<usize>> + Send + 'async_trait>> where Self: ExecuteDsl<Conn> + 'async_trait, 'life0: 'async_trait; fn load_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<Vec<U>>> + Send + 'async_trait>> where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait; fn get_result_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<U>> + Send + 'async_trait>> where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait; fn get_results_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<Vec<U>>> + Send + 'async_trait>> where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait; fn first_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<U>> + Send + 'async_trait>> where U: 'static + Send + 'async_trait, Self: LimitDsl + 'async_trait, Limit<Self>: LoadQuery<Conn, U>, 'life0: 'async_trait; }

Required Methods§

Source

fn execute_async<'life0, 'async_trait>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<usize>> + Send + 'async_trait>>
where Self: ExecuteDsl<Conn> + 'async_trait, 'life0: 'async_trait,

Source

fn load_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<Vec<U>>> + Send + 'async_trait>>
where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait,

Source

fn get_result_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<U>> + Send + 'async_trait>>
where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait,

Source

fn get_results_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<Vec<U>>> + Send + 'async_trait>>
where U: 'static + Send + 'async_trait, Self: LoadQuery<Conn, U> + 'async_trait, 'life0: 'async_trait,

Source

fn first_async<'life0, 'async_trait, U>( self, asc: &'life0 AsyncConn, ) -> Pin<Box<dyn Future<Output = AsyncResult<U>> + Send + 'async_trait>>
where U: 'static + Send + 'async_trait, Self: LimitDsl + 'async_trait, Limit<Self>: LoadQuery<Conn, U>, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, Conn> AsyncRunQueryDsl<Conn, Pool<ConnectionManager<Conn>>> for T
where T: 'static + Send + RunQueryDsl<Conn>, Conn: 'static + Connection,