Struct cynic::StreamingOperation
source · pub struct StreamingOperation<ResponseData, Variables = ()> { /* private fields */ }
Expand description
A StreamingOperation is an Operation that expects a stream of results.
Currently this is means subscriptions.
Implementations§
source§impl<'de, Fragment, Variables> StreamingOperation<Fragment, Variables>where
Fragment: QueryFragment<'de>,
Variables: QueryVariables,
impl<'de, Fragment, Variables> StreamingOperation<Fragment, Variables>where Fragment: QueryFragment<'de>, Variables: QueryVariables,
sourcepub fn subscription(variables: Variables) -> Selfwhere
Fragment::SchemaType: SubscriptionRoot,
pub fn subscription(variables: Variables) -> Selfwhere Fragment::SchemaType: SubscriptionRoot,
Constructs a new Operation for a subscription