about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-03-13 21:06:34 -0700
committerbors <bors@rust-lang.org>2014-03-13 21:06:34 -0700
commit4443fb3cfa945cf7cb791cf8f2ec81b7faf25132 (patch)
treec8f6ce3665e52cee6b0bff3a55aa0116a61af1c6 /src/libstd/rt
parent98fa0f89b1cd406594bedc5803a1b6db53990a15 (diff)
parenta63deeb3d32fc21f36d484d62a3ea1d3d0c82500 (diff)
downloadrust-4443fb3cfa945cf7cb791cf8f2ec81b7faf25132.tar.gz
rust-4443fb3cfa945cf7cb791cf8f2ec81b7faf25132.zip
auto merge of #12855 : alexcrichton/rust/shutdown, r=brson
This is something that is plausibly useful, and is provided by libuv. This is
not currently surfaced as part of the `TcpStream` type, but it may possibly
appear in the future. For now only the raw functionality is provided through the
Rtio objects.
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/rtio.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/rt/rtio.rs b/src/libstd/rt/rtio.rs
index cd557f01834..60933aeb38b 100644
--- a/src/libstd/rt/rtio.rs
+++ b/src/libstd/rt/rtio.rs
@@ -206,6 +206,7 @@ pub trait RtioTcpStream : RtioSocket {
     fn keepalive(&mut self, delay_in_seconds: uint) -> Result<(), IoError>;
     fn letdie(&mut self) -> Result<(), IoError>;
     fn clone(&self) -> ~RtioTcpStream;
+    fn close_write(&mut self) -> Result<(), IoError>;
 }
 
 pub trait RtioSocket {