#[non_exhaustive]pub enum Socks5Error {
Show 16 variants
NoAcceptableAuthMethod,
AuthenticationFailed,
ConnectionFailed,
InvalidSocksVersion,
InvalidAuthVersion,
NoAuthMethods,
NoSupportedAuthMethods,
InvalidAuthMethod,
InvalidCommand,
InvalidReply,
InvalidRsvValue,
InvalidUsernameEncoding,
InvalidPasswordEncoding,
UsernameTooLong,
PasswordTooLong,
TooManyAuthMethods,
}socks5 only.Expand description
Errors that can occur during SOCKS5 protocol operations.
Each variant represents a specific error condition that may arise when implementing or using the SOCKS5 protocol, as defined in RFC 1928 and RFC 1929.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoAcceptableAuthMethod
Server reports no acceptable authentication methods from those offered by client.
AuthenticationFailed
User credentials were rejected during authentication phase.
ConnectionFailed
Connection to the target host could not be established.
InvalidSocksVersion
Client sent an incorrect SOCKS version (expected 0x05).
InvalidAuthVersion
Client sent an incorrect authentication subprotocol version.
NoAuthMethods
Client did not provide any authentication methods.
NoSupportedAuthMethods
None of the client’s offered authentication methods are supported.
InvalidAuthMethod
The authentication method byte value is not recognized.
InvalidCommand
The command byte is not a valid SOCKS5 command.
InvalidReply
The reply byte is not a valid SOCKS5 reply code.
InvalidRsvValue
The reserved field contains a non-zero value.
InvalidUsernameEncoding
The username contains invalid UTF-8 encoding.
InvalidPasswordEncoding
The password contains invalid UTF-8 encoding.
UsernameTooLong
The username exceeds maximum allowed length (255 bytes).
PasswordTooLong
The password exceeds maximum allowed length (255 bytes).
TooManyAuthMethods
Client offered more than 255 authentication methods.
Trait Implementations§
Source§impl Clone for Socks5Error
impl Clone for Socks5Error
Source§fn clone(&self) -> Socks5Error
fn clone(&self) -> Socks5Error
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more