diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-12 17:04:34 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-13 15:52:37 -0700 |
| commit | a63deeb3d32fc21f36d484d62a3ea1d3d0c82500 (patch) | |
| tree | 09421405ec3085de6217dfdef14cc119fd6da596 /src/libstd/rt | |
| parent | 3316a0e6b2ad9352bab58e7c046ef3d212411d82 (diff) | |
| download | rust-a63deeb3d32fc21f36d484d62a3ea1d3d0c82500.tar.gz rust-a63deeb3d32fc21f36d484d62a3ea1d3d0c82500.zip | |
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.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/rtio.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
