Trait gurkle::Subscriber [−][src]
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]
&'life0 self,
request_body: RequestBody
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<T>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Subscribe to provided GraphQL subscription.
Implementors
impl<T> Subscriber<T> for WsClient where
T: for<'de> Deserialize<'de> + Unpin + Send + 'static,
[src]
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,
[src]
&'life0 self,
request_body: RequestBody
) -> Pin<Box<dyn Future<Output = Result<SubscriptionStream<T>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,