Expand description
§DebugState Module (ApplicationState)
§RESPONSIBILITIES
Manages debug provider state including debug configuration providers and adapter descriptor factories.
§ARCHITECTURAL ROLE
DebugState is part of the FeatureState module, storing debug provider registrations keyed by debug type.
§KEY COMPONENTS
- DebugState: Main struct containing debug provider registrations
- Default: Initialization implementation
- Helper methods: Debug registration management
§ERROR HANDLING
- Thread-safe access via
Arc<tokio::sync::RwLock<...>> - Proper lock error handling
§LOGGING
State changes are logged at appropriate levels (debug, info, warn, error).
§PERFORMANCE CONSIDERATIONS
- Lock mutexes briefly and release immediately
- Use Arc for shared ownership across threads
Structs§
- Debug
Adapter Descriptor Factory Registration - Debug adapter descriptor factory registration info
- Debug
Configuration Provider Registration - Debug configuration provider registration info
- Debug
State - Debug state containing debug provider registrations.