[][src]Trait tokio_socks::ToProxyAddrs

pub trait ToProxyAddrs {
    type Output: Stream<Item = Result<SocketAddr>> + Unpin;
    pub 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

pub fn to_proxy_addrs(&self) -> Self::Output[src]

Loading content...

Implementations on Foreign Types

impl ToProxyAddrs for SocketAddr[src]

type Output = Once<Ready<Result<SocketAddr>>>

impl ToProxyAddrs for (IpAddr, u16)[src]

type Output = Once<Ready<Result<SocketAddr>>>

impl ToProxyAddrs for (Ipv4Addr, u16)[src]

type Output = Once<Ready<Result<SocketAddr>>>

impl ToProxyAddrs for (Ipv6Addr, u16)[src]

type Output = Once<Ready<Result<SocketAddr>>>

impl ToProxyAddrs for SocketAddrV4[src]

type Output = Once<Ready<Result<SocketAddr>>>

impl ToProxyAddrs for SocketAddrV6[src]

type Output = Once<Ready<Result<SocketAddr>>>

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

type Output = ProxyAddrsStream

impl ToProxyAddrs for str[src]

type Output = ProxyAddrsStream

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

type Output = ProxyAddrsStream

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

type Output = T::Output

Loading content...

Implementors

Loading content...