pong-rs 0.3.3

A network monitoring tool that performs ICMP, TCP, and HTTP pings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Debug, Error)]
pub enum PingError {
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    #[error("Timeout")]
    Timeout,
    #[error("Invalid reply: {0}")]
    InvalidReply(String),
    #[error("Request error: {0}")]
    RequestError(#[from] reqwest::Error),
}