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 pre_submit(self: Pin<&mut Self>) -> Result<Decision>
fn pre_submit(self: Pin<&mut Self>) -> Result<Decision>
Perform the operation before submit, and return
Decision
to
indicate whether submitting the operation to polling is required.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