pub fn bind_tcp(addr: &str) -> Result<TcpListener>Expand description
Bind a TCP listener for HTTP serving. Kept separate from the accept loop so the caller can log/act on a successful bind (or propagate the error) before the accept thread starts.
pub fn bind_tcp(addr: &str) -> Result<TcpListener>Bind a TCP listener for HTTP serving. Kept separate from the accept loop so the caller can log/act on a successful bind (or propagate the error) before the accept thread starts.