Struct jsonrpc::EndpointHandler [] [src]

pub struct EndpointHandler {
    pub endpoint: Endpoint,
    pub request_handler: Box<RequestHandler>,
}

Combine an Endpoint with a request handler, to create a complete Endpoint Handler, capable of handling incoming requests from a message reader.

See also: Endpoint

Fields

Methods

impl EndpointHandler
[src]

Run a message read loop with given message reader. Loop will be terminated only when there is an error reading a message.

Handle an incoming message

Handle a well-formed incoming JsonRpc request object