Enum mio::tcp::Shutdown 1.0.0
[−]
[src]
pub enum Shutdown {
Read,
Write,
Both,
}1.0.0
Variants
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.
Trait Implementations
impl Copy for Shutdown
impl Eq for Shutdown
impl Clone for Shutdown
fn clone(&self) -> Shutdown
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl Debug for Shutdown
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.