pub enum ExecutorKind {
Naive,
GpuReactor,
IoUring,
}Expand description
How a waiting thread runs a wait.
Variants§
Naive
The wait runs inline on the waiting thread: a blocking sleep, then a blocking park or poll. Other work proceeds only on other threads or through issue-ahead.
GpuReactor
The wait is a task of this crate’s Executor: its idle sleeps to the
earliest predicted deadline, then parks on the completion line; ready tasks run between.
IoUring
As GpuReactor, with the deadline sleep an IORING_OP_TIMEOUT (ns) on an io_uring.
Implementations§
Source§impl ExecutorKind
impl ExecutorKind
Sourcepub const ALL: [ExecutorKind; 3]
pub const ALL: [ExecutorKind; 3]
Every kind, in declared order.
Trait Implementations§
Source§impl Clone for ExecutorKind
impl Clone for ExecutorKind
impl Copy for ExecutorKind
Source§impl Debug for ExecutorKind
impl Debug for ExecutorKind
Source§impl Declared for ExecutorKind
impl Declared for ExecutorKind
Source§const FALLBACK_CODE: ErrorCode = ErrorCode::ExecutorFallback
const FALLBACK_CODE: ErrorCode = ErrorCode::ExecutorFallback
The code of the warning a fallback emits: (requested, why, running).
Source§const REFUSED_CODE: ErrorCode = ErrorCode::ExecutorRefused
const REFUSED_CODE: ErrorCode = ErrorCode::ExecutorRefused
The code of the refusal a strict setting emits: (requested, why).
Source§type Caps = ExecutorCaps
type Caps = ExecutorCaps
What the host offers, probed once by the host (never by the core).
impl Eq for ExecutorKind
Source§impl Hash for ExecutorKind
impl Hash for ExecutorKind
Source§impl PartialEq for ExecutorKind
impl PartialEq for ExecutorKind
impl StructuralPartialEq for ExecutorKind
Auto Trait Implementations§
impl Forget for ExecutorKind
impl Freeze for ExecutorKind
impl Move for ExecutorKind
impl RefUnwindSafe for ExecutorKind
impl Send for ExecutorKind
impl Sync for ExecutorKind
impl Unpin for ExecutorKind
impl UnsafeUnpin for ExecutorKind
impl UnwindSafe for ExecutorKind
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