Skip to main content

bind_addr

Function bind_addr 

Source
pub fn bind_addr<S>(addr: S, backlog: i32) -> Result<Vec<TcpListener>, Error>
where S: ToSocketAddrs,
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.