-
Notifications
You must be signed in to change notification settings - Fork 13.3k
std: Deprecate extra TcpStream/UdpSocket methods #27368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
These methods are all covered by [RFC 1158] and are currently all available on stable Rust via the [`net2` crate][net2] on crates.io. This commit does not touch the timeout related functions as they're still waiting on `Duration` which is unstable anyway, so punting in favor of the `net2` crate wouldn't buy much. [RFC 1158]: rust-lang/rfcs#1158 [net2]: http://crates.io/crates/net2 Specifically, this commit deprecates: * TcpStream::set_nodelay * TcpStream::set_keepalive * UdpSocket::set_broadcast * UdpSocket::set_multicast_loop * UdpSocket::join_multicast * UdpSocket::set_multicast_time_to_live * UdpSocket::set_time_to_live
r? @aturon |
(rust_highfive has picked a reviewer for you, use r? to override) |
7196b3e
to
798ce50
Compare
I'm a bit puzzled by the rationale here: why deprecate these when the plan is, ultimately, to stabilize them? |
Almost all of these functions will have their signatures changed anyway, and I figured it'd be good to encourage any current users to try out the |
Ah OK, I had forgotten that there were signature changes as well. In that case: @bors: r+ |
📌 Commit 798ce50 has been approved by |
⌛ Testing commit 798ce50 with merge 823f4fc... |
These methods are all covered by [RFC 1158] and are currently all available on stable Rust via the [`net2` crate][net2] on crates.io. This commit does not touch the timeout related functions as they're still waiting on `Duration` which is unstable anyway, so punting in favor of the `net2` crate wouldn't buy much. [RFC 1158]: rust-lang/rfcs#1158 [net2]: http://crates.io/crates/net2
These methods are all covered by RFC 1158 and are currently all available on
stable Rust via the
net2
crate on crates.io. This commit does nottouch the timeout related functions as they're still waiting on
Duration
whichis unstable anyway, so punting in favor of the
net2
crate wouldn't buy much.