[][src]Trait tokio_socks::ToProxyAddrs

pub trait ToProxyAddrs {
    type Output: Stream<Item = Result<SocketAddr>> + Unpin;
    fn to_proxy_addrs(&self) -> Self::Output;
}

A trait for objects which can be converted or resolved to one or more SocketAddr values, which are going to be connected as the the proxy server.

This trait is similar to std::net::ToSocketAddrs but allows asynchronous name resolution.

Associated Types

Loading content...

Required methods

fn to_proxy_addrs(&self) -> Self::Output

Loading content...

Implementations on Foreign Types

impl ToProxyAddrs for SocketAddr[src]

impl ToProxyAddrs for (IpAddr, u16)[src]

impl ToProxyAddrs for (Ipv4Addr, u16)[src]

impl ToProxyAddrs for (Ipv6Addr, u16)[src]

impl ToProxyAddrs for SocketAddrV4[src]

impl ToProxyAddrs for SocketAddrV6[src]

impl<'a> ToProxyAddrs for &'a [SocketAddr][src]

impl ToProxyAddrs for str[src]

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

impl<'a, T: ToProxyAddrs + ?Sized> ToProxyAddrs for &'a T[src]

type Output = T::Output

Loading content...

Implementors

Loading content...