#[repr(u32)]pub enum SocketShutdownMode {
Read = 1,
Write = 2,
ReadWrite = 3,
}Expand description
Defines how to shut down a TCP stream.
Variants§
Read = 1
Disable future reading.
Write = 2
Disable future writing.
ReadWrite = 3
Disable future reading and writing.
Trait Implementations§
Source§impl Clone for SocketShutdownMode
impl Clone for SocketShutdownMode
Source§fn clone(&self) -> SocketShutdownMode
fn clone(&self) -> SocketShutdownMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketShutdownMode
impl Debug for SocketShutdownMode
Source§impl PartialEq for SocketShutdownMode
impl PartialEq for SocketShutdownMode
impl Copy for SocketShutdownMode
impl Eq for SocketShutdownMode
impl StructuralPartialEq for SocketShutdownMode
Auto Trait Implementations§
impl Freeze for SocketShutdownMode
impl RefUnwindSafe for SocketShutdownMode
impl Send for SocketShutdownMode
impl Sync for SocketShutdownMode
impl Unpin for SocketShutdownMode
impl UnsafeUnpin for SocketShutdownMode
impl UnwindSafe for SocketShutdownMode
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