Skip to main content

listen

Function listen 

Source
pub async fn listen(address: SocketAddr) -> Result<TcpListener, AppError>
Expand description

Binds a TCP listener.

§Errors

AppError::BadArgument if the address can’t be bound.