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 Debug for TargetAddr
[src]
impl Debug for TargetAddr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TargetAddr
[src]
impl Clone for TargetAddr
fn clone(&self) -> TargetAddr
[src]
fn clone(&self) -> TargetAddr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ToSocketAddrs for TargetAddr
[src]
impl ToSocketAddrs for TargetAddr
type Iter = Iter
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<Iter>
[src]
fn to_socket_addrs(&self) -> Result<Iter>
Converts this object to an iterator of resolved SocketAddr
s. Read more
impl ToTargetAddr for TargetAddr
[src]
impl ToTargetAddr for TargetAddr
fn to_target_addr(&self) -> Result<TargetAddr>
[src]
fn to_target_addr(&self) -> Result<TargetAddr>
Converts the value of self
to a TargetAddr
.
Auto Trait Implementations
impl Send for TargetAddr
impl Send for TargetAddr
impl Sync for TargetAddr
impl Sync for TargetAddr