Expand description
Executor for running tests with mocked environment
See MockExecutor
ModulesΒ§
- task_id π
- Task id, module to hide
Tialias
StructsΒ§
- Actual
Waker π - Actual implementor of
Wakefor use in aWaker - Data π
- Executorβs state
- Debug
Dump - Debugging dump of a
MockExecutorβs state - Debug
Tasks π - Helper:
Debugs as a list of tasks, given theDatafor lookups and a list of the ids - IsSubthread π
- Marker indicating that this task is a Subthread, not an async task.
- Mock
Executor - Executor for running tests with mocked environment
- Progress
Until πStalled Future - Future from
progress_until_stalled - Progressing
Until πStalled - State used for an in-progress call to
progress_until_stalled - Scheduling
Policy Iter - An iterator over the variants of SchedulingPolicy
- SetAwake π
Shared::subthread_yieldshould set our task awake before switching to the executor- Shared π
- Shared state and ancillary information
- Task π
- Record of a single task
EnumsΒ§
- Scheduling
Policy - How we should schedule?
- Task
Future πInfo - A future as stored in our record of a
Task - Task
State π - State of a task - do we think it needs to be polled?
- Thread
Descriptor π - 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>asRawWaker
TraitsΒ§
- Ensure
Sync πSend - Trait to let us assert at compile time that something is nicely
Syncetc.
Type AliasesΒ§
- Main
Future π - Future for the argument to
block_on, which is handled specially - Sleep
Location π - We record βwhere a future went to sleepβ as (just) a backtrace
- Task
Future π - Type-erased future, one for each of our (normal) tasks