Trait SubgraphExecutor
Source pub trait SubgraphExecutor {
// Required methods
fn endpoint(&self) -> &Uri;
fn execute<'a, 'life0, 'async_trait>(
&'life0 self,
execution_request: SubgraphExecutionRequest<'a>,
timeout: Option<Duration>,
plugin_req_state: &'a Option<PluginRequestState<'a>>,
) -> Pin<Box<dyn Future<Output = Result<SubgraphResponse<'a>, SubgraphExecutorError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
// Provided method
fn to_boxed_arc<'a>(
self,
) -> Arc<Box<dyn SubgraphExecutor + Send + Sync + 'a>>
where Self: Sized + Send + Sync + 'a { ... }
}