Feature gate: #![feature(addr_unspecified_from)]
This is a tracking issue for the IpAddr::unspecified_from() and SocketAddr::unspecified_from() functions for creating a 0.0.0.0:0/[::]:0 address matching the IP version of the input.
Public API
// core::net
impl IpAddr {
pub fn unspecified_from(this: Self) -> Self;
}
impl SocketAddr {
pub fn unspecified_from(this: Self) -> Self;
}
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
Feature gate:
#![feature(addr_unspecified_from)]This is a tracking issue for the
IpAddr::unspecified_from()andSocketAddr::unspecified_from()functions for creating a0.0.0.0:0/[::]:0address matching the IP version of the input.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)Unresolved Questions
unspecified_fromvsto_unspecifiedvs something else), and whether we allow the function to take(&self)instead of(this: Self).Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩