use std::io; use thiserror::Error; #[derive(Debug, Error)] pub enum MixHttpRequestError { #[error("invalid Socks5 response")] InvalidSocks5Response, #[error("the received Socks5 response was empty")] EmptySocks5Response, #[error("bytecodec Error: {0}")] ByteCodecError(#[from] bytecodec::Error), #[error("Url parse error: {0}")] UrlParseError(#[from] url::ParseError), #[error("could not resolve socket address from the provided URL")] SocketAddrResolveError { #[source] source: io::Error, }, }