Enum bitflags::__core::net::Shutdown 1.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
Read | Indicates that the reading portion of this stream/socket should be shut
down. All currently blocked and future reads will return | |
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 |
Trait Implementations
Derived Implementations
impl Debug for Shutdown
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq<Shutdown> for Shutdown
fn eq(&self, __arg_0: &Shutdown) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool
This method tests for !=.
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