Skip to main content

Module task

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 πŸ”’
We record β€œwhere a future went to sleep” as (just) a backtrace
TaskFuture πŸ”’
Type-erased future, one for each of our (normal) tasks