Struct jsonrpc_core::control::Session
[−]
[src]
pub struct Session { /* fields omitted */ }
Object representing current session. It's up to JSON-RPC transport to decide when sessions are created.
Subscriptions are only possible when session is provided. Dropping session object will automatically unsubscribe from all previously opened subscriptions.
Methods
impl Session
[src]
fn remove_subscription(&self, name: String, id: Value)
Removes a subscription from auto-unsubscribe. Client has manually unsubscribed.
Trait Implementations
impl Clone for Session
[src]
fn clone(&self) -> Session
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more