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§impl<S: AsRawFd> OpCode for ShutdownSocket<S>
impl<S: AsRawFd> OpCode for ShutdownSocket<S>
source§fn create_entry(self: Pin<&mut Self>) -> OpEntry
fn create_entry(self: Pin<&mut Self>) -> OpEntry
Create submission entry.
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<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