#[repr(i32)]pub enum Shutdown {
Read = 0,
Write = 1,
Both = 2,
}
Expand description
Possible values which can be passed to the shutdown method.
Variants§
Read = 0
Indicates that the reading portion of this socket should be shut down.
Write = 1
Indicates that the writing portion of this socket should be shut down.
Both = 2
Shut down both the reading and writing portions of this socket.
Trait Implementations§
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