pub fn into_jsonrpc_result<T>(r: CoreResult<T>) -> Result<T>