pub struct CloseSocket { /* private fields */ }
Expand description
Close socket fd.
Implementations§
Source§impl CloseSocket
impl CloseSocket
Sourcepub fn new(fd: OwnedFd) -> Self
pub fn new(fd: OwnedFd) -> Self
Create CloseSocket
.
Trait Implementations§
Source§impl OpCode for CloseSocket
impl OpCode for CloseSocket
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 Freeze for CloseSocket
impl RefUnwindSafe for CloseSocket
impl Send for CloseSocket
impl Sync for CloseSocket
impl Unpin for CloseSocket
impl UnwindSafe for CloseSocket
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