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§
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