pub enum Shutdown {
Read,
Write,
Both,
}
Possible values which can be passed to the shutdown method of TcpStream.
ReadIndicates that the reading portion of this stream/socket should be shut down. All currently blocked and future reads will return Ok(0).
WriteIndicates that the writing portion of this stream/socket should be shut down. All currently blocked and future writes will return an error.
BothShut down both the reading and writing portions of this stream.
See Shutdown::Read and Shutdown::Write for more information.
impl Copy for Shutdown
[src]
impl Clone for Shutdown
[src]
fn clone(&self) -> ShutdownReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Shutdown
[src]
fn eq(&self, __arg_0: &Shutdown) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Shutdown
[src]
impl Debug for Shutdown
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/net/enum.Shutdown.html