pub enum Socks5ProxyError {
Show 20 variants
NoProxyServerHostName(Uri),
NoProxyServerPort(Uri),
EmptyProxyServerHostName(Uri),
IoError(Error),
NoScheme(Uri),
NotSupportedScheme(Uri),
BadResponseVersion(u8),
BadServerChoice(u8),
ClientAuthenticationFailed([u8; 2]),
NoIpAddr(String),
NotSupportedServerBindAddressType(u8),
GeneralFailure(u8),
ConnectionNotAllowedByRules(u8),
NetworkUnreachable(u8),
HostUnreachable(u8),
ConnectionRefused(u8),
TtlExpired(u8),
CommandNotSupported(u8),
AddressTypeNotSupported(u8),
UnknownReplyCode(u8),
}Expand description
Socks5 Proxy Error
Variants§
NoProxyServerHostName(Uri)
NoProxyServerPort(Uri)
EmptyProxyServerHostName(Uri)
IoError(Error)
NoScheme(Uri)
NotSupportedScheme(Uri)
BadResponseVersion(u8)
BadServerChoice(u8)
ClientAuthenticationFailed([u8; 2])
NoIpAddr(String)
NotSupportedServerBindAddressType(u8)
GeneralFailure(u8)
ConnectionNotAllowedByRules(u8)
NetworkUnreachable(u8)
HostUnreachable(u8)
ConnectionRefused(u8)
TtlExpired(u8)
CommandNotSupported(u8)
AddressTypeNotSupported(u8)
UnknownReplyCode(u8)
Trait Implementations§
Source§impl Debug for Socks5ProxyError
impl Debug for Socks5ProxyError
Source§impl Display for Socks5ProxyError
impl Display for Socks5ProxyError
Source§impl Error for Socks5ProxyError
impl Error for Socks5ProxyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for Socks5ProxyError
impl From<Error> for Socks5ProxyError
Source§impl From<Socks5ProxyError> for ProxyError
impl From<Socks5ProxyError> for ProxyError
Source§fn from(source: Socks5ProxyError) -> Self
fn from(source: Socks5ProxyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Socks5ProxyError
impl !RefUnwindSafe for Socks5ProxyError
impl Send for Socks5ProxyError
impl Sync for Socks5ProxyError
impl Unpin for Socks5ProxyError
impl !UnwindSafe for Socks5ProxyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more