Struct xo_api_client::Subscription [−]
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
impl<Notif> Subscription<Notif>
impl<Notif> Subscription<Notif>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.
impl<Notif> Subscription<Notif> where
Notif: DeserializeOwned,
impl<Notif> Subscription<Notif> where
Notif: DeserializeOwned, Trait Implementations
impl<Notif> Debug for Subscription<Notif> where
Notif: Debug,
impl<Notif> Debug for Subscription<Notif> where
Notif: Debug, impl<Notif> Drop for Subscription<Notif>
impl<Notif> Drop for Subscription<Notif>Auto Trait Implementations
impl<Notif> !RefUnwindSafe for Subscription<Notif>impl<Notif> Send for Subscription<Notif> where
Notif: Send, impl<Notif> Sync for Subscription<Notif> where
Notif: Sync, impl<Notif> Unpin for Subscription<Notif> where
Notif: Unpin, impl<Notif> !UnwindSafe for Subscription<Notif>