Skip to main content

bind

Function bind 

Source
pub fn bind(addr: SocketAddr) -> Result<TcpListener>
Expand description

Bind the admin listener. Kept synchronous-at-startup so port conflicts fail fast rather than deep inside the runtime task graph.

ยงErrors

Returns an error if the underlying crate::net::bind_reuseaddr fails (socket creation, bind, or listen).