alloy_json_rpc

Function 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.