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 call_blocking(self: Pin<&mut Self>) -> Result<usize>
fn call_blocking(self: Pin<&mut Self>) -> Result<usize>
Call the operation in a blocking way. This method will only be called if
[
create_entry
] returns OpEntry::Blocking
.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