Struct async_graphql_tide::Subscription [−][src]
pub struct Subscription<S> { /* fields omitted */ }
Expand description
GraphQL subscription endpoint.
Implementations
pub fn new<Query, Mutation, Subscription>(
schema: Schema<Query, Mutation, Subscription>
) -> Self where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
[src]
pub fn new<Query, Mutation, Subscription>(
schema: Schema<Query, Mutation, Subscription>
) -> Self where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
[src]Create a graphql subscription endpoint.
pub fn new_with_initializer<Query, Mutation, Subscription, F, R>(
schema: Schema<Query, Mutation, Subscription>,
initializer: F
) -> Self where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
F: FnOnce(Value) -> R + Unpin + Send + Sync + Clone + 'static,
R: Future<Output = Result<Data>> + Send + 'static,
[src]
pub fn new_with_initializer<Query, Mutation, Subscription, F, R>(
schema: Schema<Query, Mutation, Subscription>,
initializer: F
) -> Self where
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
F: FnOnce(Value) -> R + Unpin + Send + Sync + Clone + 'static,
R: Future<Output = Result<Data>> + Send + 'static,
[src]Create a graphql subscription endpoint.
Specifies that a function converts the init payload to data.
Trait Implementations
Auto Trait Implementations
impl<S> !RefUnwindSafe for Subscription<S>
impl<S> Send for Subscription<S>
impl<S> Sync for Subscription<S>
impl<S> Unpin for Subscription<S>
impl<S> !UnwindSafe for Subscription<S>