Skip to content

Commit f952df9

Browse files
committed
---
yaml --- r: 224427 b: refs/heads/beta c: 1867078 h: refs/heads/master i: 224425: 6798c44 224423: e9fbedc v: v3
1 parent dab321e commit f952df9

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
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: b904b452c607e84c1fb7e4b1a5f9ed6cb4e043e6
26+
refs/heads/beta: 186707893bdb50a0954b04b7451a334620137784
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/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/beta/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)