pub trait AnyHttpExecutor:
AnyExt
+ Serialize
+ Deserialize {
// Required method
fn execute<'life0, 'async_trait>(
&'life0 self,
cx: PipelineCx,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = PipelineResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generic executor trait - this is the main trait that endpoint executors will implement.
Required Methods§
Sourcefn execute<'life0, 'async_trait>(
&'life0 self,
cx: PipelineCx,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = PipelineResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
cx: PipelineCx,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = PipelineResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes a query using the given executor and database connection.
Trait Implementations§
Source§impl<'typetag> Serialize for dyn AnyHttpExecutor + 'typetag
impl<'typetag> Serialize for dyn AnyHttpExecutor + 'typetag
Source§impl<'typetag> Serialize for dyn AnyHttpExecutor + Send + 'typetag
impl<'typetag> Serialize for dyn AnyHttpExecutor + Send + 'typetag
Source§impl<'typetag> Serialize for dyn AnyHttpExecutor + Sync + 'typetag
impl<'typetag> Serialize for dyn AnyHttpExecutor + Sync + 'typetag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".