Struct tor_socksproto::SocksStatus [−][src]
pub struct SocksStatus(_);
Expand description
Possible reply status values from a SOCKS5 handshake.
Note that the documentation for these values is kind of scant, and is limited to what the RFC says. Note also that SOCKS4 only represents success and failure.
Implementations
RFC 1928: “succeeded”
RFC 1928: “general SOCKS server failure”
RFC 1928: “connection not allowable by ruleset”
(This is the only occurrence of ‘ruleset’ or even ‘rule’ in RFC 1928.)
RFC 1928: “Network unreachable”
RFC 1928: “Host unreachable”
RFC 1928: “Connection refused”
RFC 1928: “TTL expired”
(This is the only occurrence of ‘TTL’ in RFC 1928.)
RFC 1929: “Command not supported”
RFC 1929: “Address type not supported”
Return true if this value is one that we recognize.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SocksStatus
impl Send for SocksStatus
impl Sync for SocksStatus
impl Unpin for SocksStatus
impl UnwindSafe for SocksStatus
Blanket Implementations
Mutably borrows from an owned value. Read more