Skip to main content

Module app

Module app 

Source

Structs§

CuAppLifecycle
Compile-time enforced lifecycle for a CuApplication.
CuSimAppLifecycle
Compile-time enforced lifecycle for a CuSimApplication.
Faulted
Typestate marker: a lifecycle transition failed and the application may be partially started or partially stopped. The only way forward is a best-effort cleanup through stop_all_tasks.
Initialized
Typestate marker: the application is built but its tasks have not been started yet.
LifecycleError
A failed lifecycle transition.
Running
Typestate marker: tasks are started and iterations can be executed.
SimLifecycleError
A failed simulation lifecycle transition, mirroring LifecycleError.
Stopped
Typestate marker: tasks are stopped. The application can be started again, which is useful to chain missions within the same process.
Subsystem
Compile-time subsystem identity embedded in generated Copper applications.

Traits§

CuApplication
A trait that defines the structure and behavior of a CuApplication.
CuDistributedReplayApplication
Simulation-enabled applications that can be instantiated for distributed replay.
CuRecordedReplayApplication
Simulation-enabled applications that can replay a recorded CopperList verbatim.
CuSimApplication
A trait that defines the structure and behavior of a simulation-enabled CuApplication.
CuStdApplication
Convenience trait for CuApplication when it is just a std App
CuSubsystemMetadata
Compile-time subsystem identity embedded in generated Copper applications.
CurrentRuntimeCopperList
Optional introspection hook exposing the latest runtime-generated CopperList snapshot.
Startable
Lifecycle states from which the application tasks can be started (Initialized, Stopped).
Stoppable
Lifecycle states from which the application tasks can be stopped (Running, Faulted).

Type Aliases§

CuStdAppLifecycle
Convenience alias for applications using the default std unified logger, mirroring CuStdApplication.
CuStdSimAppLifecycle
Convenience alias for simulation applications using the default std unified logger, mirroring CuStdAppLifecycle.
SimTransitionResult
Result of a simulation lifecycle transition: on success the application typed with its new state, on failure SimLifecycleError carrying the application typed Faulted.
TransitionResult
Result of a lifecycle transition: on success the application typed with its new state, on failure LifecycleError carrying the application typed Faulted.