rust-lang/rust — pull request #19251 by jbapple (2014-11-23 21:15:49+00:00)
Title: Change the UnixStream interface so that close_write on a variable preven...

...ts (at compile time) future attempts to write to that variable.

This is also true for close_read.

Note that UnixStreams cloned from a variable on which close_* is called are not affected by this change. They have the same interface as before, in which reads and writes may fail due to the underlying stream being closed for that operation.