You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.