pub enum Socks5Reply {
Succeeded,
GeneralFailure,
ConnectionNotAllowed,
NetworkUnreachable,
HostUnreachable,
ConnectionRefused,
TtlExpired,
CommandNotSupported,
AddressTypeNotSupported,
}Available on crate feature
socks5 only.Expand description
Reply code carried in the REP field of a SOCKS5 reply.
Variants§
Succeeded
0x00 succeeded.
GeneralFailure
0x01 general SOCKS server failure.
ConnectionNotAllowed
0x02 connection not allowed by ruleset.
NetworkUnreachable
0x03 network unreachable.
HostUnreachable
0x04 host unreachable.
ConnectionRefused
0x05 connection refused.
TtlExpired
0x06 TTL expired.
CommandNotSupported
0x07 command not supported.
AddressTypeNotSupported
0x08 address type not supported.
Implementations§
Source§impl Socks5Reply
impl Socks5Reply
Sourcepub fn from_u8(byte: u8) -> Option<Socks5Reply>
pub fn from_u8(byte: u8) -> Option<Socks5Reply>
Maps a raw REP byte to its Socks5Reply, or None for a
code outside the RFC 1928 range.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Socks5Reply
Source§impl Debug for Socks5Reply
impl Debug for Socks5Reply
Source§impl Display for Socks5Reply
impl Display for Socks5Reply
impl Eq for Socks5Reply
Source§impl PartialEq for Socks5Reply
impl PartialEq 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 UnsafeUnpin 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