Enum std::net::Shutdown 1.0.0[−][src]
pub enum Shutdown {
Read,
Write,
Both,
}Variants
ReadThe reading portion of the TcpStream should be shut down.
WriteThe writing portion of the TcpStream should be shut down.
All currently blocked and future writes will return an error.
BothBoth the reading and the writing portions of the TcpStream should be shut down.
See Shutdown::Read and Shutdown::Write for more information.
Trait Implementations
impl Copy for Shutdown[src]
impl Copy for Shutdownimpl Clone for Shutdown[src]
impl Clone for Shutdownfn clone(&self) -> Shutdown[src]
fn clone(&self) -> ShutdownReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Shutdown[src]
impl PartialEq for Shutdownfn eq(&self, other: &Shutdown) -> bool[src]
fn eq(&self, other: &Shutdown) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for Shutdown[src]
impl Eq for Shutdownimpl Debug for Shutdown[src]
impl Debug for Shutdown