Struct xo_api_client::Subscription [−][src]
pub struct Subscription<Notif> { /* fields omitted */ }Expand description
Active subscription on the client.
It will automatically unsubscribe in the Subscription::drop so no need to explicitly call
the unsubscribe method if it is an an subscription based on SubscriptionId.
Implementations
pub fn new(
to_back: Sender<FrontToBack>,
notifs_rx: Receiver<Value>,
kind: SubscriptionKind
) -> Subscription<Notif>
pub fn new(
to_back: Sender<FrontToBack>,
notifs_rx: Receiver<Value>,
kind: SubscriptionKind
) -> Subscription<Notif>
Create a new subscription.