pub struct Accept<S> { /* private fields */ }
Expand description
Accept a connection.
Implementations§
Trait Implementations§
Source§impl<S: AsRawFd> OpCode for Accept<S>
impl<S: AsRawFd> OpCode for Accept<S>
Source§impl<S: AsRawFd> OpCode for Accept<S>
impl<S: AsRawFd> OpCode for Accept<S>
Source§fn create_entry(self: Pin<&mut Self>) -> OpEntry
fn create_entry(self: Pin<&mut Self>) -> OpEntry
Create submission entry.
Source§unsafe fn set_result(self: Pin<&mut Self>, fd: usize)
unsafe fn set_result(self: Pin<&mut Self>, fd: usize)
Set the result when it successfully completes.
The operation stores the result and is responsible to release it if the
operation is cancelled. Read more
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 Accept<S>
impl<S> RefUnwindSafe for Accept<S>
impl<S> Send for Accept<S>
impl<S> Sync for Accept<S>
impl<S> !Unpin for Accept<S>
impl<S> UnwindSafe for Accept<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