pub fn get_config_mut() -> Result<RwLockWriteGuard<'static, Config>, Box<dyn Error>>Expand description
Returns a mutable reference to the global singleton instance of the Config.
This function provides a simpler interface for accessing the Config singleton with write access for modifying configuration settings.
§Returns
Returns a Result containing the write guard or an error if the lock is poisoned.
§Examples
use aimx::get_config_mut;
let mut config_guard = get_config_mut().expect("Failed to get config mutex");
config_guard.last_path = "/new/path".to_string();
// Lock is automatically released when guard goes out of scope