pub enum Shutdown {
Read,
Write,
Both,
}Expand description
Possible values which can be passed to the TcpStream::shutdown method.
Variants
Read
The reading portion of the TcpStream should be shut down.
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.
See Shutdown::Read and Shutdown::Write for more information.
Trait Implementations
impl Copy for Shutdown
sourceimpl Eq for Shutdown
sourceimpl StructuralEq for Shutdown
sourceimpl StructuralPartialEq for Shutdown
sourceAuto Trait Implementations
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more