Skip to content

Commit 583364c

Browse files
committed
---
yaml --- r: 236010 b: refs/heads/stable c: 1867078 h: refs/heads/master v: v3
1 parent 01b4f86 commit 583364c

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: b904b452c607e84c1fb7e4b1a5f9ed6cb4e043e6
32+
refs/heads/stable: 186707893bdb50a0954b04b7451a334620137784
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libstd/net/tcp.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ impl TcpStream {
129129
}
130130

131131
/// Sets the nodelay flag on this connection to the boolean specified.
132+
#[deprecated(since = "1.3.0",
133+
reason = "available through the `net2` crate on crates.io")]
134+
#[unstable(feature = "tcp_extras", reason = "available externally")]
132135
pub fn set_nodelay(&self, nodelay: bool) -> io::Result<()> {
133136
self.0.set_nodelay(nodelay)
134137
}
@@ -138,6 +141,9 @@ impl TcpStream {
138141
/// If the value specified is `None`, then the keepalive flag is cleared on
139142
/// this connection. Otherwise, the keepalive timeout will be set to the
140143
/// specified time, in seconds.
144+
#[unstable(feature = "tcp_extras", reason = "available externally")]
145+
#[deprecated(since = "1.3.0",
146+
reason = "available through the `net2` crate on crates.io")]
141147
pub fn set_keepalive(&self, seconds: Option<u32>) -> io::Result<()> {
142148
self.0.set_keepalive(seconds)
143149
}

branches/stable/src/libstd/net/udp.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,51 @@ impl UdpSocket {
9898
}
9999

100100
/// Sets the broadcast flag on or off.
101+
#[deprecated(since = "1.3.0",
102+
reason = "available through the `net2` crate on crates.io")]
103+
#[unstable(feature = "udp_extras", reason = "available externally")]
101104
pub fn set_broadcast(&self, on: bool) -> io::Result<()> {
102105
self.0.set_broadcast(on)
103106
}
104107

105108
/// Sets the multicast loop flag to the specified value.
106109
///
107110
/// This lets multicast packets loop back to local sockets (if enabled)
111+
#[deprecated(since = "1.3.0",
112+
reason = "available through the `net2` crate on crates.io")]
113+
#[unstable(feature = "udp_extras", reason = "available externally")]
108114
pub fn set_multicast_loop(&self, on: bool) -> io::Result<()> {
109115
self.0.set_multicast_loop(on)
110116
}
111117

112118
/// Joins a multicast IP address (becomes a member of it).
119+
#[deprecated(since = "1.3.0",
120+
reason = "available through the `net2` crate on crates.io")]
121+
#[unstable(feature = "udp_extras", reason = "available externally")]
113122
pub fn join_multicast(&self, multi: &IpAddr) -> io::Result<()> {
114123
self.0.join_multicast(multi)
115124
}
116125

117126
/// Leaves a multicast IP address (drops membership from it).
127+
#[deprecated(since = "1.3.0",
128+
reason = "available through the `net2` crate on crates.io")]
129+
#[unstable(feature = "udp_extras", reason = "available externally")]
118130
pub fn leave_multicast(&self, multi: &IpAddr) -> io::Result<()> {
119131
self.0.leave_multicast(multi)
120132
}
121133

122134
/// Sets the multicast TTL.
135+
#[deprecated(since = "1.3.0",
136+
reason = "available through the `net2` crate on crates.io")]
137+
#[unstable(feature = "udp_extras", reason = "available externally")]
123138
pub fn set_multicast_time_to_live(&self, ttl: i32) -> io::Result<()> {
124139
self.0.multicast_time_to_live(ttl)
125140
}
126141

127142
/// Sets this socket's TTL.
143+
#[deprecated(since = "1.3.0",
144+
reason = "available through the `net2` crate on crates.io")]
145+
#[unstable(feature = "udp_extras", reason = "available externally")]
128146
pub fn set_time_to_live(&self, ttl: i32) -> io::Result<()> {
129147
self.0.time_to_live(ttl)
130148
}

0 commit comments

Comments
 (0)