Function rpc_toolkit::command_helpers::call_remote
source · [−]pub async fn call_remote<Ctx: Context, Params: Serialize, Res: for<'de> Deserialize<'de>>(
ctx: Ctx,
method: &str,
params: Params,
_return_ty: PhantomData<Res>
) -> Result<RpcResponse<GenericRpcMethod<&str, Params, Res>>, RequestError>