Skip to main content

Executor

Trait Executor 

Source
pub trait Executor: Send + Sync {
    type Row: Send;
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn execute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 CompiledQuery,
    ) -> Pin<Box<dyn Future<Output = Result<ExecuteResult, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn fetch_all<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 CompiledQuery,
    ) -> Pin<Box<dyn Future<Output = Result<QueryResult<Self::Row>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Source

type Row: Send

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

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

Source

fn fetch_all<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 CompiledQuery, ) -> Pin<Box<dyn Future<Output = Result<QueryResult<Self::Row>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§