Struct compio_driver::op::ShutdownSocket
source · pub struct ShutdownSocket { /* private fields */ }
Expand description
Shutdown a socket.
Implementations§
source§impl ShutdownSocket
impl ShutdownSocket
sourcepub fn new(fd: RawFd, how: Shutdown) -> Self
pub fn new(fd: RawFd, how: Shutdown) -> Self
Create ShutdownSocket
.
Trait Implementations§
source§impl OpCode for ShutdownSocket
impl OpCode for ShutdownSocket
source§fn is_nonblocking(&self) -> bool
fn is_nonblocking(&self) -> bool
Determines that the operation is really non-blocking defined by POSIX.
If not, the driver will try to operate it in another thread.
Auto Trait Implementations§
impl RefUnwindSafe for ShutdownSocket
impl Send for ShutdownSocket
impl Sync for ShutdownSocket
impl Unpin for ShutdownSocket
impl UnwindSafe for ShutdownSocket
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