Closed
Description
There is TcpListener::incoming
that provides this functionality, but it has a lifetime. I cannot simply pass the stream around and manipulate it, because it has 'a
lifetime bound to the TcpListener
. An alternative that takes over ownership would be appreciated.
Note that this is symmetric to the stdlib, where the same API suffers from the same problem.