Enum rotor::mio::tcp::Shutdown1.0.0 [] [src]

pub enum Shutdown {
    Read,
    Write,
    Both,
}
1.0.0

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

Variants

Indicates that the reading portion of this stream/socket should be shut down. All currently blocked and future reads will return Ok(0).

Indicates that the writing portion of this stream/socket should be shut down. All currently blocked and future writes will return an error.

Shut down both the reading and writing portions of this stream.

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

Trait Implementations

impl PartialEq<Shutdown> for Shutdown

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Shutdown

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Shutdown

impl Debug for Shutdown

Formats the value using the given formatter.

impl Copy for Shutdown