pub trait ToSocketAddrs {
type Iter: Iterator<Item = SocketAddr>;
// Required method
fn to_socket_addrs<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Self::Iter> + Send + 'async_trait>>
where Self: 'async_trait;
}Expand description
An async abstraction over std::net::ToSocketAddrs.
Converts or resolves addresses to SocketAddr values.