pub struct AcceptMulti<S>where
S: AsFd,{ /* private fields */ }Expand description
A fused AcceptMulti operation
Implementations§
Source§impl<S> AcceptMulti<S>where
S: AsFd,
impl<S> AcceptMulti<S>where
S: AsFd,
Sourcepub fn new(fd: S) -> AcceptMulti<S>
pub fn new(fd: S) -> AcceptMulti<S>
Create a new AcceptMulti.
Trait Implementations§
Source§impl<S> IntoInner for AcceptMulti<S>where
S: AsFd,
impl<S> IntoInner for AcceptMulti<S>where
S: AsFd,
Source§impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
Source§fn create_entry(self: Pin<&mut AcceptMulti<S>>) -> OpEntry
fn create_entry(self: Pin<&mut AcceptMulti<S>>) -> OpEntry
Create submission entry.
Source§fn create_entry_fallback(self: Pin<&mut AcceptMulti<S>>) -> OpEntry
fn create_entry_fallback(self: Pin<&mut AcceptMulti<S>>) -> OpEntry
Create submission entry for fallback. This method will only be called if
create_entry returns an entry with unsupported opcode.Source§fn call_blocking(self: Pin<&mut AcceptMulti<S>>) -> Result<usize, Error>
fn call_blocking(self: Pin<&mut AcceptMulti<S>>) -> Result<usize, Error>
Call the operation in a blocking way. This method will be called if Read more
Source§unsafe fn set_result(
self: Pin<&mut AcceptMulti<S>>,
result: &Result<usize, Error>,
extra: &Extra,
)
unsafe fn set_result( self: Pin<&mut AcceptMulti<S>>, result: &Result<usize, Error>, extra: &Extra, )
Set the result when it completes.
The operation stores the result and is responsible to release it if the
operation is cancelled. Read more
Source§unsafe fn push_multishot(
self: Pin<&mut AcceptMulti<S>>,
result: Result<usize, Error>,
extra: Extra,
)
unsafe fn push_multishot( self: Pin<&mut AcceptMulti<S>>, result: Result<usize, Error>, extra: Extra, )
Push a multishot result to the inner queue. Read more
Source§fn pop_multishot(
self: Pin<&mut AcceptMulti<S>>,
) -> Option<BufResult<usize, Extra>>
fn pop_multishot( self: Pin<&mut AcceptMulti<S>>, ) -> Option<BufResult<usize, Extra>>
Pop a multishot result from the inner queue.
Source§impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
Source§fn pre_submit(self: Pin<&mut AcceptMulti<S>>) -> Result<Decision, Error>
fn pre_submit(self: Pin<&mut AcceptMulti<S>>) -> Result<Decision, Error>
Perform the operation before submit, and return
Decision to
indicate whether submitting the operation to polling is required.Source§fn op_type(self: Pin<&mut AcceptMulti<S>>) -> Option<OpType>
fn op_type(self: Pin<&mut AcceptMulti<S>>) -> Option<OpType>
Get the operation type when an event is occurred.
Source§fn operate(self: Pin<&mut AcceptMulti<S>>) -> Poll<Result<usize, Error>>
fn operate(self: Pin<&mut AcceptMulti<S>>) -> Poll<Result<usize, Error>>
Perform the operation after received corresponding
event. If this operation is blocking, the return value should be
Poll::Ready.Auto Trait Implementations§
impl<S> Freeze for AcceptMulti<S>where
S: Freeze,
impl<S> !RefUnwindSafe for AcceptMulti<S>
impl<S> Send for AcceptMulti<S>where
S: Send,
impl<S> Sync for AcceptMulti<S>where
S: Sync,
impl<S> Unpin for AcceptMulti<S>where
S: Unpin,
impl<S> !UnsafeUnpin for AcceptMulti<S>
impl<S> !UnwindSafe for AcceptMulti<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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more