pub struct ShutdownSocket<S> { /* private fields */ }
Expand description
Shutdown a socket.
Implementations§
Source§impl<S> ShutdownSocket<S>
impl<S> ShutdownSocket<S>
Sourcepub fn new(fd: SharedFd<S>, how: Shutdown) -> Self
pub fn new(fd: SharedFd<S>, how: Shutdown) -> Self
Create ShutdownSocket
.
Trait Implementations§
Source§impl<S: AsRawFd> OpCode for ShutdownSocket<S>
impl<S: AsRawFd> OpCode for ShutdownSocket<S>
Source§fn op_type(&self) -> OpType
fn op_type(&self) -> OpType
Determines that the operation is really overlapped defined by Windows
API. If not, the driver will try to operate it in another thread.
Auto Trait Implementations§
impl<S> Freeze for ShutdownSocket<S>
impl<S> RefUnwindSafe for ShutdownSocket<S>
impl<S> Send for ShutdownSocket<S>
impl<S> Sync for ShutdownSocket<S>
impl<S> Unpin for ShutdownSocket<S>
impl<S> UnwindSafe for ShutdownSocket<S>
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