pub fn bind_addr<S: ToSocketAddrs>(
addr: S,
backlog: i32,
) -> Result<Vec<TcpListener>>Expand description
Binds TCP listeners for every address resolved from addr.
Succeeds if at least one address binds and returns only the listeners that bound. Otherwise, returns the last bind error.