pub(crate) fn listen(sock: Socket) -> TcpListener {
    sock.listen(1024)
        .expect("socket should be able to start listening");
    sock.set_nonblocking(true)
        .expect("socket should be able to set nonblocking");
    TcpListener::from_std(sock.into()).expect("socket should seem okay to tokio")
}
/// Start listening on a socket previously bound using `socket2`, returning a
/// Tokio `TcpListener`.
Start listening on a socket previously bound using `socket2`, returning a
Tokio `TcpListener`.
Start listening on a socket previously bound using ` socket2 ` returning a Tokio ` TcpListener ` .
pub(crate) fn listen(sock: Socket) -> TcpListener {
    sock.listen(1024)
        .expect("socket should be able to start listening");
    sock.set_nonblocking(true)
        .expect("socket should be able to set nonblocking");
    TcpListener::from_std(sock.into()).expect("socket should seem okay to tokio")
}
pub ( crate ) fn listen ( sock : Socket ) -> TcpListener { sock . listen ( 1024 ) . expect ( " " ) ; sock . set_nonblocking ( true ) . expect ( " " ) ; TcpListener :: from_std ( sock . into ( ) ) . expect ( " " ) }
Start listening on a socket previously bound using `socket2`, returning a
Tokio `TcpListener`.
Start listening on a socket previously bound using ` socket2 ` returning a Tokio ` TcpListener ` .
sock
Socket
sock
Socket