Enum sgx_tstd::net::Shutdown [−][src]
pub enum Shutdown { Read, Write, Both, }
Possible values which can be passed to the [shutdown
] method of
Variants
Read
The reading portion of the [TcpStream
] should be shut down.
All currently blocked and future [reads] will return [Ok(0)
].
Write
The writing portion of the [TcpStream
] should be shut down.
All currently blocked and future [writes] will return an error.
Both
Both the reading and the writing portions of the [TcpStream
] should be shut down.
Trait Implementations
impl Copy for Shutdown
[src]
impl Copy for Shutdown
impl Clone for Shutdown
[src]
impl Clone for Shutdown
fn clone(&self) -> Shutdown
[src]
fn clone(&self) -> Shutdown
Returns 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 Shutdown
fn eq(&self, other: &Shutdown) -> bool
[src]
fn eq(&self, other: &Shutdown) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Shutdown
[src]
impl Eq for Shutdown
impl Debug for Shutdown
[src]
impl Debug for Shutdown