-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
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.
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.