Enum socks::TargetAddr [] [src]

pub enum TargetAddr {
    Ip(SocketAddr),
    Domain(Stringu16),
}

A description of a connection target.

Variants

Connect to an IP address.

Connect to a fully qualified domain name.

The domain name will be passed along to the proxy server and DNS lookup will happen there.

Trait Implementations

impl Debug for TargetAddr
[src]

Formats the value using the given formatter.

impl Clone for TargetAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl ToTargetAddr for TargetAddr
[src]

Converts the value of self to a TargetAddr.