Struct jsonrpc_pubsub::Session [] [src]

pub struct Session { /* fields omitted */ }

RPC client session Keeps track of active subscriptions and unsubscribes from them upon dropping.

Methods

impl Session
[src]

Creates new session given transport raw send capabilities. Session should be created as part of metadata, sender should be returned by transport.

Returns transport write stream

Adds a function to call when session is dropped.

Trait Implementations

impl Debug for Session
[src]

Formats the value using the given formatter.

impl Drop for Session
[src]

A method called when the value goes out of scope. Read more