Enum socks5_client::Error
source · pub enum Error {
Server(ServerError),
Encoding(EncodingError),
InvalidReply,
VersionNotSupported(u8),
AuthRequired,
Completed,
Closed,
}Variants§
Server(ServerError)
Encoding(EncodingError)
InvalidReply
invalid server reply
VersionNotSupported(u8)
not supported SOCKS protocol version {0}
AuthRequired
server requires authentication with an unsupported method
Completed
SOCKS5 connection is established, the handshake is complete
Closed
connection is closed due to a failure
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ServerError> for Error
impl From<ServerError> for Error
source§fn from(v: ServerError) -> Self
fn from(v: ServerError) -> Self
Converts to this type from the input type.