Expand description
Service lifecycle runner.
This module contains the shared entrypoint mechanics for Aster services. Product crates still build their HTTP server, application state, background workers, and business hooks, while Forge owns the repeated runtime flow: register components, run startup phases, wait for termination, stop the main service, run product before-shutdown hooks, run component shutdown phases, and return the service output.
Structs§
- Aster
Runtime - Product-facing runtime runner built from service and component registrations.
- Aster
Runtime Builder - Builder for
AsterRuntime. - Runtime
Component Bundle Registration - Wrapper for components that only register runtime descriptors and hooks.
- Runtime
Component With Shutdown - Component factory that receives the runtime’s shared shutdown token.
- Runtime
Service Component - Component that provides the main runtime service future.
- Service
Lifecycle - Runs one service future with shared Aster shutdown mechanics.
- Shutdown
Resource Component - Runtime component for one shutdown-only owned resource.
- TryRuntime
Component With Shutdown - Fallible component factory that receives the runtime’s shared shutdown token.
Enums§
- Aster
Runtime Error - Error returned when runtime assembly or required startup phases fail.
Traits§
- Aster
Runtime Component - Runtime component adapter used by
AsterRuntimeBuilder::component.
Functions§
- runtime_
component - Adapts a
RuntimeComponentBundleforAsterRuntimeBuilder::component. - runtime_
component_ with_ shutdown - Builds one runtime component from the runtime’s shared shutdown token.
- shutdown_
resource_ component - Creates a shutdown-only resource component registration.
- shutdown_
resource_ component_ after - Creates a shutdown-only resource component registration with dependencies.
- try_
runtime_ component_ with_ shutdown - Fallible variant of
runtime_component_with_shutdown.