Struct jsonrpc_test::Rpc
[−]
[src]
pub struct Rpc { pub io: IoHandler, pub options: Options, }
RPC instance.
Fields
io: IoHandler
Underlying IoHandler
.
options: Options
Options
Methods
impl Rpc
[src]
fn new<D>(delegate: D) -> Self where
D: Into<HashMap<String, RemoteProcedure<()>>>,
[src]
D: Into<HashMap<String, RemoteProcedure<()>>>,
Create a new RPC instance from a single delegate.
fn request<T>(&self, method: &str, params: &T) -> String where
T: Serialize,
[src]
T: Serialize,
Perform a single, synchronous method call.