pub trait BatchQueryExecutor: Send + Sync {
// Required method
fn execute_batched<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 BatchedQuery,
) -> Pin<Box<dyn Future<Output = BatchExecutionOutcome> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Backend that actually executes a batched GraphQL query.
QueryBatcher is transport/scheduling only; the real work of parsing and
resolving a query is delegated to an implementation of this trait so that a
concrete QueryExecutor (or any other engine) can be plugged in.
Required Methods§
Sourcefn execute_batched<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 BatchedQuery,
) -> Pin<Box<dyn Future<Output = BatchExecutionOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_batched<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 BatchedQuery,
) -> Pin<Box<dyn Future<Output = BatchExecutionOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute one query and return its data / errors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".