Tracking Issue for tcplistener_into_incoming #88373
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(tcplistener_into_incoming)]
This is a tracking issue for #88339
The
TcpListener::incoming
method is really useful, however for some use cases the borrow it introduces is needlessly restricting. Thus, an owned variant is added.Public API
Steps / History
Unresolved Questions
IntoIncoming
could provide methods that allow access to (or getting back) theTcpListener
. I decided against it, but they could be added if there is a use caseinto_incoming
method should return an opaqueimpl IntoIterator
so thatIntoIncoming
is not public API, but that would be inconsistent with the rest ofstd
.The text was updated successfully, but these errors were encountered: