[][src]Trait bitconch_jsonrpc_pubsub::PubSubMetadata

pub trait PubSubMetadata: Metadata {
    fn session(&self) -> Option<Arc<Session>>;
}

Metadata extension for pub-sub method handling.

Required methods

fn session(&self) -> Option<Arc<Session>>

Returns session object associated with given request/client. None indicates that sessions are not supported on the used transport.

Loading content...

Implementations on Foreign Types

impl PubSubMetadata for Arc<Session>[src]

impl<T: PubSubMetadata> PubSubMetadata for Option<T>[src]

Loading content...

Implementors

Loading content...