Trait AsyncToSocketAddrs

Source
pub trait AsyncToSocketAddrs {
    // Required method
    fn to_socket_addrs(
        self,
    ) -> impl Future<Output = Result<impl Iterator<Item = SocketAddr> + Send>> + Send
       where Self: Sized;
}
Expand description

A common interface for resolving domain name + port to SocketAddr

Required Methods§

Source

fn to_socket_addrs( self, ) -> impl Future<Output = Result<impl Iterator<Item = SocketAddr> + Send>> + Send
where Self: Sized,

Resolve the domain name through DNS and return an Iterator of SocketAddr

Implementors§