Trait jsonrpc_pubsub::PubSubMetadata [] [src]

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

Metadata extension for pub-sub method handling.

Required Methods

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

Implementors