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 TargetAddrimpl ToTargetAddr for SocketAddrimpl ToTargetAddr for SocketAddrV4impl ToTargetAddr for SocketAddrV6impl ToTargetAddr for (Ipv4Addr, u16)impl ToTargetAddr for (Ipv6Addr, u16)impl<'a> ToTargetAddr for (&'a str, u16)impl<'a> ToTargetAddr for &'a str