Function mz_environmentd::server::listen
source · pub async fn listen(
addr: SocketAddr
) -> Result<(ListenerHandle, impl ConnectionStream), Error>
Expand description
Listens for incoming TCP connections on the specified address.
Returns a handle to the listener and the stream of incoming connections produced by the listener. When the handle is dropped, the listener is closed, and the stream of incoming connections terminates.