Function each_addr

Source
pub async fn each_addr<A: ToSocketAddrs, F, T, R>(
    addr: A,
    f: F,
) -> Result<T, Error>
where F: Fn(SocketAddr) -> R, R: Future<Output = Result<T, Error>>,
Expand description

Look up all the socket addr’s and pass in the method to get the result