juniper

Trait GraphQLTypeAsync

Source
pub trait GraphQLTypeAsync<S = DefaultScalarValue>: GraphQLValueAsync<S> + GraphQLType<S>
where Self::Context: Sync, Self::TypeInfo: Sync, S: ScalarValue + Send + Sync,
{ }
Expand description

Extension of GraphQLType trait with asynchronous queries/mutations resolvers.

It’s automatically implemented for GraphQLValueAsync and GraphQLType implementers, so doesn’t require manual or code-generated implementation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, T> GraphQLTypeAsync<S> for T