Trait tokio_socks::ToProxyAddrs
source · pub trait ToProxyAddrs {
type Output: Stream<Item = Result<SocketAddr>> + Unpin;
// Required method
fn to_proxy_addrs(&self) -> Self::Output;
}
Expand description
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.