Enum socks::TargetAddr [] [src]

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

A description of a connection target.

Variants

Ip(SocketAddr)

Connect to an IP address.

Domain(Stringu16)

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 Clone for TargetAddr
[src]

fn clone(&self) -> TargetAddr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for TargetAddr
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToTargetAddr for TargetAddr
[src]

fn to_target_addr(&self) -> Result<TargetAddr>

Converts the value of self to a a TargetAddr.