hopr_transport_network::ping

Type Alias PingQueryResult

Source
pub type PingQueryResult = Result<(Duration, String)>;
Expand description

Ping query result type holding data about the ping duration and the string containg an optional version information of the pinged peer, if provided.

Aliased Type§

enum PingQueryResult {
    Ok((Duration, String)),
    Err(NetworkingError),
}

Variants§

§1.0.0

Ok((Duration, String))

Contains the success value

§1.0.0

Err(NetworkingError)

Contains the error value