pub enum Socks5Reply {
Succeeded = 0,
GeneralFailure = 1,
ConnectionNotAllowed = 2,
NetworkUnreachable = 3,
HostUnreachable = 4,
ConnectionRefused = 5,
TTLExpired = 6,
CommandNotSupported = 7,
AddressTypeNotSupported = 8,
}Available on crate feature
socks5 only.Expand description
SOCKS5 server reply codes as defined in RFC 1928 section 6.
These reply codes indicate the status of a client’s request:
- Succeeded (0x00): Request granted.
- Various error codes (0x01-0x08): Different failure reasons.
Reference: https://datatracker.ietf.org/doc/html/rfc1928#section-6
Variants§
Succeeded = 0
GeneralFailure = 1
ConnectionNotAllowed = 2
NetworkUnreachable = 3
HostUnreachable = 4
ConnectionRefused = 5
TTLExpired = 6
CommandNotSupported = 7
AddressTypeNotSupported = 8
Trait Implementations§
Source§impl Clone for Socks5Reply
impl Clone for Socks5Reply
Source§fn clone(&self) -> Socks5Reply
fn clone(&self) -> Socks5Reply
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Socks5Reply
impl Debug for Socks5Reply
Source§impl Hash for Socks5Reply
impl Hash for Socks5Reply
Source§impl PartialEq for Socks5Reply
impl PartialEq for Socks5Reply
Source§impl TryFrom<u8> for Socks5Reply
impl TryFrom<u8> for Socks5Reply
impl Copy for Socks5Reply
impl Eq for Socks5Reply
impl StructuralPartialEq for Socks5Reply
Auto Trait Implementations§
impl Freeze for Socks5Reply
impl RefUnwindSafe for Socks5Reply
impl Send for Socks5Reply
impl Sync for Socks5Reply
impl Unpin for Socks5Reply
impl UnwindSafe for Socks5Reply
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