Expand description
A simple asynchronous task model for execution that needs to be started, stopped, mutated, and inspected.
Structs§
- Cancelled
- The return error from
AsyncRun::run
indicating the task has not yet finished executing. - Stop
Task - A future indicating that the task should return for event processing or because the task was stopped.
- Task
Control - A task wrapper that runs the task asynchronously and provides access to its state.
Traits§
- Async
Run - A method implemented by a task that can be run and stopped, storing
transient state in
S
. - Inspect
Task - A trait for inspecting a task and its associated state.
- Inspect
Task Mut - A trait for mutably inspecting a task and its associated state.