Module controller

Source
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§

ControllerStateKind
Controller state kind

Constants§

SLEEP_STEP
Sleep step (used in blocking)

Traits§

Worker
The trait which MUST be implemented by all workers
WorkerOptions
The trait which MUST be implemented by all workers

Type Aliases§

HandlerResult
Handler result type
WResult
Result type, which must be returned by workers’ run method

Derive Macros§

WorkerOpts
Automatically implements the WorkerOptions trait for a worker struct