Crate rs_jsonrpc_tcp_server

Source
Expand description

jsonrpc server over tcp/ip

extern crate rs_jsonrpc_core;
extern crate rs_jsonrpc_tcp_server;

use rs_jsonrpc_core::*;
use rs_jsonrpc_tcp_server::ServerBuilder;

fn main() {
	let mut io = IoHandler::default();
	io.add_method("say_hello", |_params| {
		Ok(Value::String("hello".to_string()))
	});
	let server = ServerBuilder::new(io)
		.start(&"0.0.0.0:0".parse().unwrap())
		.expect("Server must start with no issues.");

	server.wait();
}

Re-exports§

Structs§

Enums§

Traits§