Function jsonrpc_client_core::call_method [−][src]
pub fn call_method<T, P, R>(
transport: &mut T,
method: String,
params: P
) -> RpcRequest<R, T::Future> where
T: Transport,
P: Serialize,
R: DeserializeOwned + Send + 'static,
Prepares a lazy RpcRequest
with a given transport, method and parameters.
The call is not sent to the transport until the returned RpcRequest
is actually executed,
either as a Future
or by calling RpcRequest::call()
.
Not intended for direct use
This is being called from the client structs generated by the jsonrpc_client
macro. This
function is not intended to be used directly, only the generated structs should call this.