Shutdown in std::net - Rust (original) (raw)
pub enum Shutdown {
Read,
Write,
Both,
}
Expand description
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)
.
The writing portion of the TcpStream should be shut down.
All currently blocked and future writes will return an error.
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of[From](../convert/trait.From.html "trait std::convert::From")<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.