pub fn incoming(
listener: TcpListener,
tls: Option<Tls>,
protocol: Protocol,
accept_retry: Duration,
) -> Result<Incoming>Expand description
Accepts connections on listener, with a TLS handshake for protocol when tls is given.
§Errors
An I/O error if the listener’s address can’t be read.