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.
Both
Both the reading and the writing portions of the [TcpStream
] should be shut down.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shutdown
impl<'de> Deserialize<'de> for Shutdown
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Shutdown
impl Eq for Shutdown
impl StructuralPartialEq for Shutdown
Auto Trait Implementations§
impl Freeze for Shutdown
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)