pub enum EventSys {
Default,
Win32,
Epoll,
Kqueue,
Poll,
Select,
}Expand description
Event system to use for the c-ares built-in event thread.
Passed to Options::set_event_thread() to select which I/O
backend the internal event loop should use. In most cases Default is the
right choice.
Available since c-ares 1.26.0.
Variants§
Default
Let c-ares pick the best available backend.
Win32
Win32 IOCP / AFD_POLL.
Epoll
Linux epoll.
Kqueue
BSD / macOS kqueue.
Poll
POSIX poll().
Select
POSIX select() — last-resort fallback.
Trait Implementations§
impl Copy for EventSys
impl Eq for EventSys
Source§impl From<EventSys> for ares_evsys_t
Available on cares1_26 only.
impl From<EventSys> for ares_evsys_t
Available on
cares1_26 only.impl StructuralPartialEq for EventSys
Auto Trait Implementations§
impl Freeze for EventSys
impl RefUnwindSafe for EventSys
impl Send for EventSys
impl Sync for EventSys
impl Unpin for EventSys
impl UnsafeUnpin for EventSys
impl UnwindSafe for EventSys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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