pub struct GraphQLSubscription<Query, Mutation, Subscription, OnConnInit> { /* private fields */ }
Expand description

A GraphQL subscription endpoint builder.

Implementations

Create a GraphQLSubscription object.

Specify a callback function to be called when the connection is initialized.

You can get something from the payload of GQL_CONNECTION_INIT message to create Data. The data returned by this callback function will be merged with the data specified by [with_data].

Consumes this builder to create a tide endpoint.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.