net::UnixListener: Consider exposing poll_accept() #2260
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-net
Module: tokio/net
UnixListener::poll_accept()
is currentlypub(crate)
.However,
TcpListener::poll_accept()
ispub
as of this commit: 8a7e577#diff-a0e934bf38b64e9a75c741bff132d8adL129The corresponding
Incoming
types do exposepoll_accept()
, but theUnixListener
andTcpListener
should perhaps be made consistent - i.e., either restorepub(crate)
toTcpListener::poll_accept()
or makeUnixListener::poll_accept()
pub
.The text was updated successfully, but these errors were encountered: