Enum sgx_tstd::net::Shutdown [−][src]
pub enum Shutdown {
Read,
Write,
Both,
}Possible values which can be passed to the [shutdown] method of
Variants
ReadThe reading portion of the [TcpStream] should be shut down.
All currently blocked and future [reads] will return [Ok(0)].
WriteThe writing portion of the [TcpStream] should be shut down.
All currently blocked and future [writes] will return an error.
BothBoth the reading and the writing portions of the [TcpStream] should be shut down.
Trait Implementations
impl Copy for Shutdown[src]
impl Copy for Shutdownimpl Clone for Shutdown[src]
impl Clone for Shutdownfn clone(&self) -> Shutdown[src]
fn clone(&self) -> ShutdownReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Shutdown[src]
impl PartialEq for Shutdownfn eq(&self, other: &Shutdown) -> bool[src]
fn eq(&self, other: &Shutdown) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Shutdown[src]
impl Eq for Shutdownimpl Debug for Shutdown[src]
impl Debug for Shutdown