pub enum SocksError {
StdIoError(Error),
InvalidPackageErr(InvalidPackageKind),
UnsupportedAuthMethod,
PasswordAuthNotPassed,
UnsupportedCommand(u8),
ExecuteCommandErr(ExecuteCmdKind),
BuildSocksServerErr(BuildSocksKind),
BuildSocksClientErr(BuildSocksKind),
}Variants§
StdIoError(Error)
InvalidPackageErr(InvalidPackageKind)
Parse SOCKS5 protocol error
UnsupportedAuthMethod
Invalid auth method, not 0x00 or 0x02
PasswordAuthNotPassed
Username/Password auth is not passed
UnsupportedCommand(u8)
None auth method is supported error
ExecuteCommandErr(ExecuteCmdKind)
Execute command error
BuildSocksServerErr(BuildSocksKind)
Build SOCKS5 server error
BuildSocksClientErr(BuildSocksKind)
Build SOCKS5 client error
Trait Implementations§
Source§impl Debug for SocksError
impl Debug for SocksError
Source§impl Display for SocksError
impl Display for SocksError
Source§impl Error for SocksError
impl Error for SocksError
1.30.0 · 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 SocksError
impl From<Error> for SocksError
Source§impl From<FromUtf8Error> for SocksError
impl From<FromUtf8Error> for SocksError
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SocksError
impl !RefUnwindSafe for SocksError
impl Send for SocksError
impl Sync for SocksError
impl Unpin for SocksError
impl !UnwindSafe for SocksError
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