fn single_request(&mut self, method: String, params: Params) -> (Id, String) {
		let id = self.next_id();
		let request = jsonrpc_core::Request::Single(Call::MethodCall(MethodCall {
			jsonrpc: Some(Version::V2),
			method,
			params,
			id: id.clone(),
		}));
		(
			id,
			serde_json::to_string(&request).expect("Request serialization is infallible; qed"),
		)
	}
/// Build a single request with the next available id
Build a single request with the next available id
Build a single request with the next available id
fn single_request(&mut self, method: String, params: Params) -> (Id, String) {
		let id = self.next_id();
		let request = jsonrpc_core::Request::Single(Call::MethodCall(MethodCall {
			jsonrpc: Some(Version::V2),
			method,
			params,
			id: id.clone(),
		}));
		(
			id,
			serde_json::to_string(&request).expect("Request serialization is infallible; qed"),
		)
	}
fn single_request ( & mut self , method : String , params : Params ) -> ( Id , String ) { let id = self . next_id ( ) ; let request = jsonrpc_core :: Request :: Single ( Call :: MethodCall ( MethodCall { jsonrpc : Some ( Version :: V2 ) , method , params , id : id . clone ( ) , } ) ) ; ( id , serde_json :: to_string ( & request ) . expect ( " " ) , ) }
Build a single request with the next available id
Build a single request with the next available id
&mut self
method
String
params
Params