Expand description
Controller and workers
Modules§
- prelude
- Controller prelude
Structs§
- Context
- The context type is used to give workers access to the controller’s hub, state, and shared variables.
- Controller
- Controller, used to manage workers and their context
- State
- Controller state beacon. Can be cloned and shared with no limitations.
Enums§
- Controller
State Kind - Controller state kind
Constants§
- SLEEP_
STEP - Sleep step (used in blocking)
Traits§
- Worker
- The trait which MUST be implemented by all workers
- Worker
Options - The trait which MUST be implemented by all workers
Type Aliases§
- Handler
Result - Handler result type
- WResult
- Result type, which must be returned by workers’
run
method
Derive Macros§
- Worker
Opts - Automatically implements the
WorkerOptions
trait for a worker struct