Trait socks::ToTargetAddr[][src]

pub trait ToTargetAddr {
    fn to_target_addr(&self) -> Result<TargetAddr>;
}

A trait for objects that can be converted to TargetAddr.

Required Methods

Converts the value of self to a TargetAddr.

Implementations on Foreign Types

impl ToTargetAddr for SocketAddr
[src]

impl ToTargetAddr for SocketAddrV4
[src]

impl ToTargetAddr for SocketAddrV6
[src]

impl ToTargetAddr for (Ipv4Addr, u16)
[src]

impl ToTargetAddr for (Ipv6Addr, u16)
[src]

impl<'a> ToTargetAddr for (&'a str, u16)
[src]

impl<'a> ToTargetAddr for &'a str
[src]

Implementors