Skip to main content

bind_or_fallback

Function bind_or_fallback 

Source
pub fn bind_or_fallback(host: &str, port: u16) -> Result<Bound, Error>
Expand description

Bind host:port, and when that port is taken bind a free one instead, saying so on stderr. For a server whose port is a convenience rather than a contract.