Trait tsukuyomi_juniper::GraphQLExecutor [−][src]
pub trait GraphQLExecutor { type Future: Future<Item = GraphQLResponse, Error = Error>; fn execute(&self, request: GraphQLRequest) -> Self::Future; }
Abstraction of an executor which processes asynchronously the GraphQL requests.
Associated Types
type Future: Future<Item = GraphQLResponse, Error = Error>
The type of future which will be returned from execute
.
Required Methods
fn execute(&self, request: GraphQLRequest) -> Self::Future
Creates a future to process an execution of a GraphQL request.
Implementors
impl<T, QueryT, MutationT> GraphQLExecutor for GraphQLState<T, QueryT, MutationT> where
QueryT: GraphQLType<Context = T>,
MutationT: GraphQLType<Context = T>, type Future = Execute<T, QueryT, MutationT>;