[][src]Trait tokio_socks::IntoTargetAddr

pub trait IntoTargetAddr<'a> {
    fn into_target_addr(self) -> Result<TargetAddr<'a>>;
}

A trait for objects that can be converted to TargetAddr.

Required methods

fn into_target_addr(self) -> Result<TargetAddr<'a>>

Converts the value of self to a TargetAddr.

Loading content...

Implementations on Foreign Types

impl<'a> IntoTargetAddr<'a> for SocketAddr[src]

impl<'a> IntoTargetAddr<'a> for (IpAddr, u16)[src]

impl<'a> IntoTargetAddr<'a> for (Ipv4Addr, u16)[src]

impl<'a> IntoTargetAddr<'a> for (Ipv6Addr, u16)[src]

impl<'a> IntoTargetAddr<'a> for SocketAddrV4[src]

impl<'a> IntoTargetAddr<'a> for SocketAddrV6[src]

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

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

impl IntoTargetAddr<'static> for String[src]

impl IntoTargetAddr<'static> for (String, u16)[src]

impl<'a, T> IntoTargetAddr<'a> for &'a T where
    T: IntoTargetAddr<'a> + Copy
[src]

Loading content...

Implementors

impl<'a> IntoTargetAddr<'a> for TargetAddr<'a>[src]

Loading content...