Dtact: A non-preemptive, stackful coroutine runtime featuring a lock-free context arena, P2P mesh scheduling, and architecture-specific assembly switchers. Designed for hardware-level control and non-blocking heterogeneous orchestration.
/// Topology Strategy for the scheduler and fibers.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubenumTopologyMode{/// Peer-to-Peer Mesh: Tasks are deflected to neighbors based on load.
P2PMesh,/// Global: Tasks are shared across all cores via a common pool.
Global,/// Pinned: Fiber must stay on its origin worker. No cross-core deflection.
/// Set automatically when the fiber's switcher is a `SameThread` variant —
/// `SameThread` context-switch assumes no thread migration, so deflection
/// would violate the switcher's invariants.
Pinned,}/// Metadata: Workload Hint for scheduling decisions.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubenumWorkloadKind{/// Latency-sensitive compute tasks.
Compute,/// Throughput-oriented I/O tasks.
IO,/// Memory-intensive scanning or bulk transfers.
Memory,/// Background maintenance or telemetry tasks.
System,}