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]

[src]

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

[src]

Returns transport write stream

[src]

Adds a function to call when session is dropped.

Trait Implementations

impl Debug for Session
[src]

[src]

Formats the value using the given formatter.

impl Drop for Session
[src]

[src]

Executes the destructor for this type. Read more