Struct jsonrpc_core::commander::Commander
[−]
[src]
pub struct Commander { // some fields omitted }
Commands executor.
pub struct Commander { // some fields omitted }
Commands executor.
impl Commander
[src]fn new() -> Self
fn add_method<C>(&mut self, name: String, command: Box<C>) where C: MethodCommand + 'static
fn add_methods(&mut self, methods: HashMap<String, Box<MethodCommand>>)
fn add_notification<C>(&mut self, name: String, command: Box<C>) where C: NotificationCommand + 'static
fn add_notifications(&mut self, notifications: HashMap<String, Box<NotificationCommand>>)
fn execute_method(&mut self, name: String, params: Params) -> Result<Value, Error>
fn execute_notification(&mut self, name: String, params: Params)