Module component

Source
Expand description

Component system for managing stateful system entities.

This module provides the component framework for managing the lifecycle and state of system entities. Components have defined states (pre-initialized, ready, running, stopped, etc.) and provide a consistent interface for state management and transitions.

Structs§

ComponentRegistry
Registry for storing components.

Traits§

Component
Components have state and lifecycle management capabilities.

Functions§

dispose_component
Safely calls dispose() on a component in the global registry.
get_component
Returns a component from the global registry by ID.
get_component_registry
Returns a reference to the global component registry.
register_component
Registers a component.
register_component_actor
Registers a component that also implements Actor.
reset_component
Safely calls reset() on a component in the global registry.
start_component
Safely calls start() on a component in the global registry.
stop_component
Safely calls stop() on a component in the global registry.