Skip to main content

bind

Function bind 

Source
pub async fn bind(address: &str) -> Result<TcpListener, ServerError>
Expand description

Binds a TCP listener. Host names are resolved; the first address that binds successfully is used.