Expand description
the TestTask struct and associated trait/functions
Structs§
- Test
Task - A basic task which loops waiting for events to come from
event_receiverand then handles them using it’s state It sends events to otherTasks throughevent_senderThis should be used as the primary building block for long running or medium running tasks (i.e. anything that can’t be described as a dependency task)
Enums§
- Test
Event - Test
Result - enum describing how the tasks completed
Traits§
- Test
Task State - Type for mutable task state that can be used as the state for a
Task - Test
Task State Seed
Functions§
- add_
network_ message_ test_ task - Add the network task to handle messages and publish events.
- spawn_
timeout_ task
Type Aliases§
- AnyTest
Task State - Type alias for type-erased
TestTaskStateto be used for dynamic dispatch