Trait gurkle::Subscriber[][src]

pub trait Subscriber<T>: Sync where
    T: for<'de> Deserialize<'de> + Unpin + Send + 'static, 
{ #[must_use] 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
; }

Trait for subscribing to GraphQL subscription operations.

Required methods

#[must_use]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, 
[src]

Subscribe to provided GraphQL subscription.

Loading content...

Implementors

impl<T> Subscriber<T> for WsClient where
    T: for<'de> Deserialize<'de> + Unpin + Send + 'static, 
[src]

Loading content...