Closed
Description
Motivation
Recently tokio-rs/mio needed support for creating the
std::os::unix::net::SocketAddr
type. While the type is currently public, it is
not possible to create one as both creation methods are private:
The workaround was creating a mio
specific SocketAddr
that is equivalent to
this type.
A use of needing SocketAddr::from_parts
is shown here.
#65255 was a quick fix at trying to add this, but it will need #[unstable]
attribute and therefore be tied to an issue I believe. I wanted to open some brief conversation on if this would be okay and I can add the things missing in that PR.