Updated stabilization.
This commit is contained in:
parent
6d6e8e1765
commit
f91912af7f
3 changed files with 5 additions and 5 deletions
|
@ -66,7 +66,7 @@ impl Connection<BufferedReader<NetStream>, BufferedWriter<NetStream>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reconnects to the specified server, dropping the current connection.
|
/// Reconnects to the specified server, dropping the current connection.
|
||||||
#[unstable = "Feature is relatively new."]
|
#[stable]
|
||||||
pub fn reconnect(&self, host: &str, port: u16) -> IoResult<()> {
|
pub fn reconnect(&self, host: &str, port: u16) -> IoResult<()> {
|
||||||
let use_ssl = match self.reader.lock().unwrap().get_ref() {
|
let use_ssl = match self.reader.lock().unwrap().get_ref() {
|
||||||
&NetStream::UnsecuredTcpStream(_) => false,
|
&NetStream::UnsecuredTcpStream(_) => false,
|
||||||
|
@ -84,13 +84,13 @@ impl Connection<BufferedReader<NetStream>, BufferedWriter<NetStream>> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the keepalive for the network stream.
|
/// Sets the keepalive for the network stream.
|
||||||
#[unstable = "Feature is relatively new."]
|
#[unstable = "Rust IO has not stabilized."]
|
||||||
pub fn set_keepalive(&self, delay_in_seconds: Option<usize>) -> IoResult<()> {
|
pub fn set_keepalive(&self, delay_in_seconds: Option<usize>) -> IoResult<()> {
|
||||||
self.mod_stream(|tcp| tcp.set_keepalive(delay_in_seconds))
|
self.mod_stream(|tcp| tcp.set_keepalive(delay_in_seconds))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the timeout for the network stream.
|
/// Sets the timeout for the network stream.
|
||||||
#[unstable = "Feature is relatively new."]
|
#[unstable = "Rust IO has not stabilized."]
|
||||||
pub fn set_timeout(&self, timeout_ms: Option<u64>) {
|
pub fn set_timeout(&self, timeout_ms: Option<u64>) {
|
||||||
self.mod_stream(|tcp| Ok(tcp.set_timeout(timeout_ms))).unwrap(); // this cannot fail.
|
self.mod_stream(|tcp| Ok(tcp.set_timeout(timeout_ms))).unwrap(); // this cannot fail.
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,7 +178,7 @@ impl Config {
|
||||||
|
|
||||||
/// Gets the string to be sent in response to CTCP USERINFO requests.
|
/// Gets the string to be sent in response to CTCP USERINFO requests.
|
||||||
/// This defaults to an empty string when not specified.
|
/// This defaults to an empty string when not specified.
|
||||||
#[unstable = "Feature is still relatively new."]
|
#[stable]
|
||||||
pub fn user_info(&self) -> &str {
|
pub fn user_info(&self) -> &str {
|
||||||
self.user_info.as_ref().map(|s| &s[]).unwrap_or("")
|
self.user_info.as_ref().map(|s| &s[]).unwrap_or("")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//! Messages to and from the server.
|
//! Messages to and from the server.
|
||||||
#![unstable = "New features were added recently."]
|
#![stable]
|
||||||
use std::borrow::ToOwned;
|
use std::borrow::ToOwned;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue