Trait pg_worm::query::Executable
source · pub trait Executable {
type Output;
// Required method
fn exec_with<'life0, 'async_trait>(
&'life0 self,
client: impl 'async_trait + Executor + Send + Sync
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn exec<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Trait used to mark exectuable queries. It is used to make use of generics for executing them.