pub enum DriverType {
Epoll,
IOUring,
Kqueue,
Auto,
}Expand description
Driver type selector using strategy pattern 使用策略模式的Driver类型选择器
Variants§
Epoll
Use epoll driver (Linux) / 使用epoll driver (Linux)
IOUring
Use io-uring driver (Linux 5.1+) / 使用io-uring driver (Linux 5.1+)
Kqueue
Use kqueue driver (macOS/BSD) / 使用kqueue driver (macOS/BSD)
Auto
Automatically detect and use the best available driver 自动检测并使用最佳可用driver
Trait Implementations§
Source§impl Clone for DriverType
impl Clone for DriverType
Source§fn clone(&self) -> DriverType
fn clone(&self) -> DriverType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DriverType
Source§impl Debug for DriverType
impl Debug for DriverType
impl Eq for DriverType
Source§impl PartialEq for DriverType
impl PartialEq for DriverType
Source§fn eq(&self, other: &DriverType) -> bool
fn eq(&self, other: &DriverType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DriverType
Auto Trait Implementations§
impl Freeze for DriverType
impl RefUnwindSafe for DriverType
impl Send for DriverType
impl Sync for DriverType
impl Unpin for DriverType
impl UnsafeUnpin for DriverType
impl UnwindSafe for DriverType
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