Enum socks::TargetAddr [] [src]

pub enum TargetAddr {
    Ip(SocketAddr),
    Domain(String, u16),
}

A description of a connection target.

Variants

Ip

Connect to an IP address.

Domain

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 ToTargetAddr for TargetAddr

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

Derived Implementations

impl Clone for TargetAddr

fn clone(&self) -> TargetAddr

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

impl Debug for TargetAddr

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