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§
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,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".