Struct jsonrpsee_types::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<JsonValue>,
kind: SubscriptionKind
) -> Self
pub fn new(
to_back: Sender<FrontToBack>,
notifs_rx: Receiver<JsonValue>,
kind: SubscriptionKind
) -> Self
Create a new subscription.