Trait bitcoinchain_interface::HandleRpc
source · pub trait HandleRpc {
// Required method
fn handle_rpc(&mut self, command: &RPCCommand) -> Box<dyn Handler>;
}
Required Methods§
sourcefn handle_rpc(&mut self, command: &RPCCommand) -> Box<dyn Handler>
fn handle_rpc(&mut self, command: &RPCCommand) -> Box<dyn Handler>
| Register handler for RPC. Command is not | copied, so reference needs to remain valid | until Handler is disconnected.