[][src]Trait tokio_diesel::AsyncConnection

pub trait AsyncConnection<Conn>: AsyncSimpleConnection<Conn> where
    Conn: 'static + Connection
{ fn run<'life0, 'async_trait, R, Func>(
        &'life0 self,
        f: Func
    ) -> Pin<Box<dyn Future<Output = AsyncResult<R>> + Send + 'async_trait>>
    where
        R: 'static + Send,
        Func: 'static + FnOnce(&Conn) -> QueryResult<R> + Send,
        R: 'async_trait,
        Func: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
fn transaction<'life0, 'async_trait, R, Func>(
        &'life0 self,
        f: Func
    ) -> Pin<Box<dyn Future<Output = AsyncResult<R>> + Send + 'async_trait>>
    where
        R: 'static + Send,
        Func: 'static + FnOnce(&Conn) -> QueryResult<R> + Send,
        R: 'async_trait,
        Func: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn run<'life0, 'async_trait, R, Func>(
    &'life0 self,
    f: Func
) -> Pin<Box<dyn Future<Output = AsyncResult<R>> + Send + 'async_trait>> where
    R: 'static + Send,
    Func: 'static + FnOnce(&Conn) -> QueryResult<R> + Send,
    R: 'async_trait,
    Func: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

fn transaction<'life0, 'async_trait, R, Func>(
    &'life0 self,
    f: Func
) -> Pin<Box<dyn Future<Output = AsyncResult<R>> + Send + 'async_trait>> where
    R: 'static + Send,
    Func: 'static + FnOnce(&Conn) -> QueryResult<R> + Send,
    R: 'async_trait,
    Func: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementations on Foreign Types

impl<Conn> AsyncConnection<Conn> for Pool<ConnectionManager<Conn>> where
    Conn: 'static + Connection
[src]

Loading content...

Implementors

Loading content...