Struct jsonrpc_core::commander::Commander [] [src]

pub struct Commander {
    // some fields omitted
}

Commands executor.

Methods

impl Commander
[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 execute_method(&self, name: String, params: Params) -> Result<ValueError>

fn execute_notification(&self, name: String, params: Params)