Enum socks::TargetAddr
[−]
[src]
pub enum TargetAddr { Ip(SocketAddr), Domain(String, u16), }
A description of a connection target.
Variants
Ip(SocketAddr)
Connect to an IP address.
Domain(String, u16)
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]
impl ToTargetAddr for TargetAddr
[src]
fn to_target_addr(&self) -> Result<TargetAddr>
Converts the value of self
to a a TargetAddr
.