Expand description
Executor for running tests with mocked environment
See MockExecutor
Modules§
- task_id 🔒
- Task id, module to hide
Ti
alias
Structs§
- Actual
Waker 🔒 - Actual implementor of
Wake
for use in aWaker
- Data 🔒
- Executor’s state
- Debug
Dump - Debugging dump of a
MockExecutor
’s state - Debug
Tasks 🔒 - Helper:
Debug
s as a list of tasks, given theData
for 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_yield
should 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
Sync
etc.
Type Aliases§
- Main
Future 🔒 - Future for the argument to
block_on
, which is handled specially - Sleep
Location 🔒Non- miri
- We record “where a future went to sleep” as (just) a backtrace
- Task
Future 🔒 - Type-erased future, one for each of our (normal) tasks