From a63deeb3d32fc21f36d484d62a3ea1d3d0c82500 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 12 Mar 2014 17:04:34 -0700 Subject: io: Bind to shutdown() for TCP streams 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. --- src/libstd/rt/rtio.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/rtio.rs b/src/libstd/rt/rtio.rs index edb480fe4cb..0dc1a11d267 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 { -- cgit 1.4.1-3-g733a5