std:🥅:Shutdown - Rust (original) (raw)

Enum std::net::Shutdown1.0.0 [−] [src]

pub enum Shutdown { Read, Write, Both, }

Possible values which can be passed to the shutdown method ofTcpStream.

The reading portion of the TcpStream should be shut down.

All currently blocked and future reads will return Ok(0).

The writing portion of the TcpStream should be shut down.

All currently blocked and future writes will return an error.

Both the reading and the writing portions of the TcpStream should be shut down.

See Shutdown::Read and Shutdown::Write for more information.

impl [Copy](../../std/marker/trait.Copy.html "trait std:📑:Copy") for [Shutdown](../../std/net/enum.Shutdown.html "enum std:🥅:Shutdown")[src]

impl [Clone](../../std/clone/trait.Clone.html "trait std::clone::Clone") for [Shutdown](../../std/net/enum.Shutdown.html "enum std:🥅:Shutdown")[src]

impl [PartialEq](../../std/cmp/trait.PartialEq.html "trait std::cmp::PartialEq") for [Shutdown](../../std/net/enum.Shutdown.html "enum std:🥅:Shutdown")[src]

impl [Eq](../../std/cmp/trait.Eq.html "trait std::cmp::Eq") for [Shutdown](../../std/net/enum.Shutdown.html "enum std:🥅:Shutdown")[src]

impl [Debug](../../std/fmt/trait.Debug.html "trait std::fmt::Debug") for [Shutdown](../../std/net/enum.Shutdown.html "enum std:🥅:Shutdown")[src]