[][src]Struct juniper_subscriptions::Coordinator

pub struct Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    QueryT::TypeInfo: Send + Sync,
    MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    MutationT::TypeInfo: Send + Sync,
    SubscriptionT: GraphQLSubscriptionType<S, Context = CtxT> + Send,
    SubscriptionT::TypeInfo: Send + Sync,
    CtxT: Sync,
    S: ScalarValue + Send + Sync
{ /* fields omitted */ }

Simple SubscriptionCoordinator implementation:

  • contains the schema
  • handles subscription start

Implementations

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    QueryT::TypeInfo: Send + Sync,
    MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    MutationT::TypeInfo: Send + Sync,
    SubscriptionT: GraphQLSubscriptionType<S, Context = CtxT> + Send,
    SubscriptionT::TypeInfo: Send + Sync,
    CtxT: Sync,
    S: ScalarValue + Send + Sync
[src]

pub fn new(root_node: RootNode<'a, QueryT, MutationT, SubscriptionT, S>) -> Self[src]

Builds new Coordinator with specified root_node

Trait Implementations

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> SubscriptionCoordinator<'a, CtxT, S> for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    QueryT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    QueryT::TypeInfo: Send + Sync,
    MutationT: GraphQLTypeAsync<S, Context = CtxT> + Send,
    MutationT::TypeInfo: Send + Sync,
    SubscriptionT: GraphQLSubscriptionType<S, Context = CtxT> + Send,
    SubscriptionT::TypeInfo: Send + Sync,
    CtxT: Sync,
    S: ScalarValue + Send + Sync + 'a, 
[src]

type Connection = Connection<'a, S>

type Error = GraphQLError<'a>

Type of error while trying to spawn SubscriptionConnection

Auto Trait Implementations

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> RefUnwindSafe for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    MutationT: RefUnwindSafe,
    QueryT: RefUnwindSafe,
    S: RefUnwindSafe,
    SubscriptionT: RefUnwindSafe,
    <MutationT as GraphQLValue<S>>::TypeInfo: RefUnwindSafe,
    <QueryT as GraphQLValue<S>>::TypeInfo: RefUnwindSafe,
    <SubscriptionT as GraphQLValue<S>>::TypeInfo: RefUnwindSafe

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> Send for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> Sync for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S>

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> Unpin for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    MutationT: Unpin,
    QueryT: Unpin,
    S: Unpin,
    SubscriptionT: Unpin,
    <MutationT as GraphQLValue<S>>::TypeInfo: Unpin,
    <QueryT as GraphQLValue<S>>::TypeInfo: Unpin,
    <SubscriptionT as GraphQLValue<S>>::TypeInfo: Unpin

impl<'a, QueryT, MutationT, SubscriptionT, CtxT, S> UnwindSafe for Coordinator<'a, QueryT, MutationT, SubscriptionT, CtxT, S> where
    MutationT: UnwindSafe,
    QueryT: UnwindSafe,
    S: UnwindSafe,
    SubscriptionT: UnwindSafe,
    <MutationT as GraphQLValue<S>>::TypeInfo: UnwindSafe,
    <QueryT as GraphQLValue<S>>::TypeInfo: UnwindSafe,
    <SubscriptionT as GraphQLValue<S>>::TypeInfo: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.