Struct async_graphql_tide::Subscription[][src]

pub struct Subscription<S> { /* fields omitted */ }

GraphQL subscription endpoint.

Implementations

impl<S> Subscription<S> where
    S: Send + Sync + Clone + '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]

Create a graphql subscription endpoint.

Specifies that a function converts the init payload to data.

Trait Implementations

impl<S> Endpoint<S> for Subscription<S> where
    S: Send + Sync + Clone + 'static, 
[src]

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>

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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,