pub trait Executor:Unpin +Clone +Send +Sync + 'static { // Required methods fnexecute<'life0, 'async_trait>( &'life0 self, request:Request, ) ->Pin<Box<dynFuture<Output =Response> +Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait; fnexecute_stream( &self, request:Request, session_data:Option<Arc<Data>>, ) ->BoxStream<'static,Response>; // Provided method fnexecute_batch<'life0, 'async_trait>( &'life0 self, batch_request:BatchRequest, ) ->Pin<Box<dynFuture<Output =BatchResponse> +Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait { ... }}
Expand description
Represents a GraphQL executor
Required Methods§
Provided Methods§
Sourcefnexecute_batch<'life0, 'async_trait>( &'life0 self, batch_request:BatchRequest,) ->Pin<Box<dynFuture<Output =BatchResponse> +Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fnexecute_batch<'life0, 'async_trait>( &'life0 self, batch_request:BatchRequest,) ->Pin<Box<dynFuture<Output =BatchResponse> +Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Execute a GraphQL batch query.
Dyn Compatibility§
This trait isnotdyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
implExecutor for async_graphql::dynamic::Schema
Available oncrate feature
dynamic-schema
only.