pub enum DriverKind {
Mio,
Mock,
IoUring,
IoUringCustom(Builder),
}Expand description
I/O driver selection for the async runtime.
This enum allows choosing which I/O driver to use when building the runtime.
Variants§
Mio
Available on Unix only.
Uses the Mio driver for I/O operations (Unix only).
Mock
Uses the mock driver for testing purposes.
IoUring
Available on Linux only.
Uses the io_uring driver (Linux only).
IoUringCustom(Builder)
Available on Linux only.
Uses a custom io_uring driver (Linux only).
Trait Implementations§
Source§impl Clone for DriverKind
impl Clone for DriverKind
Source§fn clone(&self) -> DriverKind
fn clone(&self) -> DriverKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DriverKind
impl RefUnwindSafe for DriverKind
impl Send for DriverKind
impl Sync for DriverKind
impl Unpin for DriverKind
impl UnsafeUnpin for DriverKind
impl UnwindSafe for DriverKind
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