pub struct AcceptMulti<S> { /* private fields */ }Expand description
Accept multiple connections.
Implementations§
Source§impl<S> AcceptMulti<S>
impl<S> AcceptMulti<S>
Sourcepub fn new(fd: S) -> AcceptMulti<S>
pub fn new(fd: S) -> AcceptMulti<S>
Create AcceptMulti.
Trait Implementations§
Source§impl<S> IntoInner for AcceptMulti<S>
impl<S> IntoInner for AcceptMulti<S>
Source§fn into_inner(self) -> <AcceptMulti<S> as IntoInner>::Inner
fn into_inner(self) -> <AcceptMulti<S> as IntoInner>::Inner
Get the inner buffer.
Source§impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
impl<S> OpCode for AcceptMulti<S>where
S: AsFd,
Source§type Control = <Accept<S> as OpCode>::Control
type Control = <Accept<S> as OpCode>::Control
Type that contains self-references and other needed info during the
operation
Source§unsafe fn init(&mut self, ctrl: &mut <AcceptMulti<S> as OpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <AcceptMulti<S> as OpCode>::Control)
Initialize the control Read more
Source§fn pre_submit(
&mut self,
control: &mut <AcceptMulti<S> as OpCode>::Control,
) -> Result<Decision, Error>
fn pre_submit( &mut self, control: &mut <AcceptMulti<S> as OpCode>::Control, ) -> 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(
&mut self,
control: &mut <AcceptMulti<S> as OpCode>::Control,
) -> Option<OpType>
fn op_type( &mut self, control: &mut <AcceptMulti<S> as OpCode>::Control, ) -> Option<OpType>
Get the operation type when an event is occurred.
Auto Trait Implementations§
impl<S> Freeze for AcceptMulti<S>where
S: Freeze,
impl<S> RefUnwindSafe for AcceptMulti<S>where
S: RefUnwindSafe,
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>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AcceptMulti<S>where
S: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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