pub enum Socks4Error {
Io(Error),
InvalidVersion(u8),
UnsupportedCommand(u8),
ConnectionRefused,
ConnectionFailed,
FailedNoIdent,
FailedDifferentUser,
UnknownStatus(u8),
UserIdTooLong,
MalformedRequest(String),
DomainTooLong,
UnsupportedAddressType,
}Expand description
Error types for SOCKS4/4a protocol operations.
Variants§
Io(Error)
InvalidVersion(u8)
UnsupportedCommand(u8)
ConnectionRefused
ConnectionFailed
FailedNoIdent
FailedDifferentUser
UnknownStatus(u8)
UserIdTooLong
MalformedRequest(String)
DomainTooLong
UnsupportedAddressType
Trait Implementations§
Source§impl Debug for Socks4Error
impl Debug for Socks4Error
Source§impl Display for Socks4Error
impl Display for Socks4Error
Source§impl Error for Socks4Error
impl Error for Socks4Error
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Socks4Error
impl !UnwindSafe for Socks4Error
impl Freeze for Socks4Error
impl Send for Socks4Error
impl Sync for Socks4Error
impl Unpin for Socks4Error
impl UnsafeUnpin for Socks4Error
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