1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum PingError {
5 #[error("IO error: {0}")]
6 Io(#[from] std::io::Error),
7 #[error("Timeout")]
8 Timeout,
9 #[error("Invalid reply: {0}")]
10 InvalidReply(String),
11 #[error("Request error: {0}")]
12 RequestError(#[from] reqwest::Error),
13}