Shutdown in std::net - Rust (original) (raw)
Enum Shutdown
1.0.0 · Source
pub enum Shutdown {
Read,
Write,
Both,
}
Expand description
§1.0.0
The reading portion of the TcpStream should be shut down.
All currently blocked and future reads will return [Ok](../result/enum.Result.html#variant.Ok "variant std::result::Result::Ok")(0)
.
§1.0.0
The writing portion of the TcpStream should be shut down.
All currently blocked and future writes will return an error.
§1.0.0
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient, and should not be overridden without very good reason.