Enum tor_socksproto::SocksAddr [−][src]
pub enum SocksAddr {
Hostname(SocksHostname),
Ip(IpAddr),
}
Expand description
An address sent or received as part of a SOCKS handshake
Variants
A regular DNS hostname.
Ip(IpAddr)
An IP address. (Tor doesn’t like to receive these during SOCKS handshakes, since they usually indicate that the hostname lookup happened somewhere else.)
Tuple Fields of Ip
0: IpAddr
Trait Implementations
Encode this object into the writer b
.
Auto Trait Implementations
impl RefUnwindSafe for SocksAddr
impl UnwindSafe for SocksAddr
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Encode this object into the writer b
, and consume it.