Mountain/ApplicationState/State/FeatureState/Diagnostics/
mod.rs

1//! # DiagnosticsState Module (ApplicationState)
2//!
3//! ## RESPONSIBILITIES
4//! Manages diagnostic errors state including markers by owner and resource.
5//!
6//! ## ARCHITECTURAL ROLE
7//! DiagnosticsState is part of the **FeatureState** module, representing
8//! diagnostic errors state.
9//!
10//! ## KEY COMPONENTS
11//! - DiagnosticsState: Main struct containing diagnostics map
12//!
13//! ## ERROR HANDLING
14//! Uses `Arc<Mutex<...>>` for thread-safe access with proper error handling.
15//!
16//! ## LOGGING
17//! State changes are logged at appropriate levels.
18//!
19//! ## PERFORMANCE CONSIDERATIONS
20//! - Lock mutexes briefly
21//! - Avoid nested locks
22//! - Use Arc for shared ownership
23//!
24//! ## TODO
25//! - [ ] Add diagnostics validation
26//! - [ ] Implement diagnostics events
27//! - [ ] Add diagnostics metrics
28
29pub mod DiagnosticsState;