Function get_config

Source
pub fn get_config() -> &'static RwLock<Config>
Expand description

Returns the global singleton instance of the Config.

This function provides a simpler interface for accessing the Config singleton without needing to manage the RwLock directly.

§Returns

Returns a reference to the singleton Config instance.

§Examples

use aimx::get_config;

let config = get_config();
println!("Last path: {}", config.read().unwrap().last_path);