Trait gurkle::Subscriber[][src]

pub trait Subscriber<T>: Sync where
    T: for<'de> Deserialize<'de> + Unpin + Send + 'static, 
{ fn subscribe<'life0, 'async_trait>(
        &'life0 self,
        request_body: RequestBody
    ) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<T>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Trait for subscribing to GraphQL subscription operations.

Required methods

Subscribe to provided GraphQL subscription.

Implementors