[−][src]Struct juniper_subscriptions::Coordinator
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]
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,
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]
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,
type Connection = Connection<'a, S>
Type of SubscriptionConnections this SubscriptionCoordinator
returns Read more
type Error = GraphQLError<'a>
Type of error while trying to spawn SubscriptionConnection
pub fn subscribe(
&'a self,
req: &'a GraphQLRequest<S>,
context: &'a CtxT
) -> BoxFuture<'a, Result<Self::Connection, Self::Error>>[src]
&'a self,
req: &'a GraphQLRequest<S>,
context: &'a CtxT
) -> BoxFuture<'a, Result<Self::Connection, Self::Error>>
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,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,