Enum std::net::Shutdown [] [src]

pub enum Shutdown {
    Read,
    Write,
    Both,
}

Possible values which can be passed to the shutdown method of TcpStream.

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

impl Debug for Shutdown

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Shutdown

fn eq(&self, __arg_0: &Shutdown) -> bool

fn ne(&self, __arg_0: &Shutdown) -> bool

impl Clone for Shutdown

fn clone(&self) -> Shutdown

fn clone_from(&mut self, source: &Self)

impl Copy for Shutdown