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