Skip to main content

Executor

Trait Executor 

Source
pub trait Executor {
    // Required methods
    fn execute<'life0, 'async_trait>(
        &'life0 mut self,
        query: CompiledQuery,
    ) -> Pin<Box<dyn Future<Output = Result<ExecuteResult, OrmError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_one<'life0, 'async_trait, T>(
        &'life0 mut self,
        query: CompiledQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, OrmError>> + Send + 'async_trait>>
       where T: FromRow + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_all<'life0, 'async_trait, T>(
        &'life0 mut self,
        query: CompiledQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, OrmError>> + Send + 'async_trait>>
       where T: FromRow + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Source

fn fetch_one<'life0, 'async_trait, T>( &'life0 mut self, query: CompiledQuery, ) -> Pin<Box<dyn Future<Output = Result<Option<T>, OrmError>> + Send + 'async_trait>>
where T: FromRow + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_all<'life0, 'async_trait, T>( &'life0 mut self, query: CompiledQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<T>, OrmError>> + Send + 'async_trait>>
where T: FromRow + Send + 'async_trait, Self: 'async_trait, '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§