pub enum Shutdown {
Read,
Write,
Both,
}Possible values which can be passed to the shutdown method of TcpStream
and UdpSocket.
Variants
Read | Indicates that the reading portion of this stream/socket should be shut
down. All currently blocked and future reads will return Ok(0).
|
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 Shutdown::Read and Shutdown::Write for more information.
|
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct, enum,
trait, typedef (or
tdef).