#[repr(i32)]pub enum ShutdownType {
Receive = 0,
Send = 1,
Both = 2,
}
Expand description
Type of socket’s shutdown operation.
Variants§
Receive = 0
Stops any further receives.
Send = 1
Stops any further sends.
Both = 2
Stops both sends and receives.
Trait Implementations§
Source§impl Clone for ShutdownType
impl Clone for ShutdownType
Source§fn clone(&self) -> ShutdownType
fn clone(&self) -> ShutdownType
Returns a copy 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 Into<i32> for ShutdownType
impl Into<i32> for ShutdownType
impl Copy for ShutdownType
Auto Trait Implementations§
impl Freeze for ShutdownType
impl RefUnwindSafe for ShutdownType
impl Send for ShutdownType
impl Sync for ShutdownType
impl Unpin for ShutdownType
impl UnwindSafe for ShutdownType
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