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
fn to_target_addr(&self) -> Result<TargetAddr>
Converts the value of self
to a TargetAddr
.
Implementors
impl ToTargetAddr for TargetAddr
impl ToTargetAddr for SocketAddr
impl ToTargetAddr for SocketAddrV4
impl ToTargetAddr for SocketAddrV6
impl ToTargetAddr for (Ipv4Addr, u16)
impl ToTargetAddr for (Ipv6Addr, u16)
impl<'a> ToTargetAddr for (&'a str, u16)
impl<'a> ToTargetAddr for &'a str