4890c528bc
* mixFetch * clippy * removed redundant Arc over 'WasmStorage' in the 'ClientStorage' --------- Co-authored-by: Fouad <fmtabbara@hotmail.co.uk>
24 lines
560 B
Rust
24 lines
560 B
Rust
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,
|
|
},
|
|
}
|