Trait tokio_socks::IntoTargetAddr

source ·
pub trait IntoTargetAddr<'a> {
    // Required method
    fn into_target_addr(self) -> Result<TargetAddr<'a>>;
}
Expand description

A trait for objects that can be converted to TargetAddr.

Required Methods§

source

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

Converts the value of self to a TargetAddr.

Implementations on Foreign Types§

source§

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

source§

impl IntoTargetAddr<'static> for String

source§

impl<'a> IntoTargetAddr<'a> for &'a str

source§

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

source§

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

source§

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

source§

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

source§

impl<'a> IntoTargetAddr<'a> for SocketAddr

source§

impl<'a> IntoTargetAddr<'a> for SocketAddrV4

source§

impl<'a> IntoTargetAddr<'a> for SocketAddrV6

source§

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

Implementors§

source§

impl<'a> IntoTargetAddr<'a> for TargetAddr<'a>