Skip to main content

Module lifecycle

Module lifecycle 

Source

Structs§

Lifecycle
Lifecycle controller for managing background tasks.
ReadySignal
Ready signal used by start_with_ready* to flip Starting -> Running.
WithLifecycle
Wrapper that implements StatefulModule for any T: Runnable.

Enums§

LifecycleError
Library-level error for lifecycle operations.
Status
Terminal/transition states for a background job.
StopReason
Reason why a task stopped.

Traits§

Runnable
Trait for modules that can run a long-running task. Note: take self by Arc to make the spawned future 'static and Send.