Enum std::net::Shutdown
[−]
[src]
pub enum Shutdown {
Read,
Write,
Both,
}Possible values which can be passed to the shutdown`shutdownmethod of` method of TcpStream`TcpStreamand`
and UdpSocket`UdpSocket`.
Variants
Read | Indicates that the reading portion of this stream/socket should be shut
down. All currently blocked and future reads will return |
Write | Indicates that the writing portion of this stream/socket should be shut down. All currently blocked and future writes will return an error. |
Both | Shut down both the reading and writing portions of this stream. See |