Struct jsonrpc_core::request_handler::RequestHandler [] [src]

pub struct RequestHandler {
    // some fields omitted
}

Methods

impl RequestHandler
[src]

fn new() -> Self

fn add_method<C>(&self, name: String, command: Box<C>) where C: MethodCommand + 'static

fn add_methods(&self, methods: HashMap<StringBox<MethodCommand>>)

fn add_notification<C>(&self, name: String, command: Box<C>) where C: NotificationCommand + 'static

fn add_notifications(&self, notifications: HashMap<StringBox<NotificationCommand>>)

fn handle_request(&self, request: Request) -> Option<Response>