pub enum Socks5ServerError {
UnknowProtocol,
UnsupportAuth,
UnsupportCommand(u8),
UnknowAddrType(u8),
InvalidHost(Utf8Error),
DNSError(String),
IOError(Error),
}Variants§
UnknowProtocol
UnsupportAuth
UnsupportCommand(u8)
UnknowAddrType(u8)
InvalidHost(Utf8Error)
DNSError(String)
IOError(Error)
Trait Implementations§
Source§impl Debug for Socks5ServerError
impl Debug for Socks5ServerError
Source§impl Display for Socks5ServerError
impl Display for Socks5ServerError
Source§impl Error for Socks5ServerError
impl Error for Socks5ServerError
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 Socks5ServerError
impl From<Error> for Socks5ServerError
Auto Trait Implementations§
impl Freeze for Socks5ServerError
impl !RefUnwindSafe for Socks5ServerError
impl Send for Socks5ServerError
impl Sync for Socks5ServerError
impl Unpin for Socks5ServerError
impl !UnwindSafe for Socks5ServerError
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