Can we convert unix::SocketAddr to/from std::os::unix::net::SocketAddr? #6864
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-net
Module: tokio/net
The arti project, for various reasons, needs to convert between
tokio::unix::SocketAddr
andstd::os::unix::net::SocketAddr
.The simplest approach here would be to implement
From<.>
andInto<.>
ontokio::unix::SocketAddr
. We'd be happy to write a a patch to do that, but we're wondering if there is some reason not to do so?As it stands, we've had to make our own conversion function which is a bit ugly, and won't work in the future if Tokio adds support for "abstract" unix SocketAddrs.
Do you have any suggestions here? As noted, we'd be happy to write a patch if there's some approach that would be acceptable on Tokio's end.
The text was updated successfully, but these errors were encountered: