Function alloy_json_rpc::transform_result

source ยท
pub fn transform_result<T, E, ErrResp>(
    response: Result<Response<T, ErrResp>, E>,
) -> Result<T, RpcError<E, ErrResp>>
where ErrResp: RpcReturn,
Expand description

Transform a transport outcome into an RpcResult, discarding the Id.