Skip to main content

Module DebugState

Module DebugState 

Source
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§

DebugAdapterDescriptorFactoryRegistration
Debug adapter descriptor factory registration info
DebugConfigurationProviderRegistration
Debug configuration provider registration info
DebugState
Debug state containing debug provider registrations.