Module task

Source
Expand description

Executor for running tests with mocked environment

See MockExecutor

Modules§

task_id 🔒
Task id, module to hide Ti alias

Structs§

ActualWaker 🔒
Actual implementor of Wake for use in a Waker
Data 🔒
Executor’s state
DebugDump
Debugging dump of a MockExecutor’s state
DebugTasks 🔒
Helper: Debugs as a list of tasks, given the Data for lookups and a list of the ids
IsSubthread 🔒
Marker indicating that this task is a Subthread, not an async task.
MockExecutor
Executor for running tests with mocked environment
ProgressUntilStalledFuture 🔒
Future from progress_until_stalled
ProgressingUntilStalled 🔒
State used for an in-progress call to progress_until_stalled
SchedulingPolicyIter
An iterator over the variants of SchedulingPolicy
SetAwake 🔒
Shared::subthread_yield should set our task awake before switching to the executor
Shared 🔒
Shared state and ancillary information
Task 🔒
Record of a single task

Enums§

SchedulingPolicy
How we should schedule?
TaskFutureInfo 🔒
A future as stored in our record of a Task
TaskState 🔒
State of a task - do we think it needs to be polled?
ThreadDescriptor 🔒
Identifies a thread we know about - the executor thread, or a Subthread

Constants§

THREAD_DESCRIPTOR
Identifies this thread.

Statics§

RAW_WAKER_VTABLE 🔒
vtable for Box<ActualWaker> as RawWaker

Traits§

EnsureSyncSend 🔒
Trait to let us assert at compile time that something is nicely Sync etc.

Type Aliases§

MainFuture 🔒
Future for the argument to block_on, which is handled specially
SleepLocation 🔒 Non-miri
We record “where a future went to sleep” as (just) a backtrace
TaskFuture 🔒
Type-erased future, one for each of our (normal) tasks