[][src]Trait socks::ToTargetAddr

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

A trait for objects that can be converted to TargetAddr.

Required methods

pub fn to_target_addr(&self) -> Result<TargetAddr>[src]

Converts the value of self to a TargetAddr.

Loading content...

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]

Loading content...

Implementors

impl ToTargetAddr for TargetAddr[src]

Loading content...