Struct jsonrpc_core::io::IoSession
[−]
[src]
pub struct IoSession { /* fields omitted */ }
Represents a single client connected to this RPC server. The client may send many requests.
Methods
impl IoSession
[src]
fn new(handler: Arc<IoHandler>) -> IoSession
Opens up a new session to handle many request and subscriptions. It should represent a single client.
fn handle_request<H: ResponseHandler<Option<String>, Option<String>> + 'static>(&self,
request_str: &str,
handler: H)
request_str: &str,
handler: H)
Handle a request within this session.