pub struct Settings {
pub settings: AppSettings,
}Expand description
Singleton manager for system settings matching the StarUML architecture model.
Fields§
§settings: AppSettingsThe active configuration preferences.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn get_settings() -> Self
pub fn get_settings() -> Self
Returns the global singleton instance of the Settings struct.
Resolves preferences lazily from disk on the first invocation.
§Returns
A Settings struct containing a copy of the active application settings.
Sourcepub fn get_settings_lock() -> &'static RwLock<AppSettings>
pub fn get_settings_lock() -> &'static RwLock<AppSettings>
Returns a reference to the global thread-safe RwLock container. Initializes lazily on the first request by trying to load settings from disk. Falls back to defaults if parsing or loading fails.
§Returns
A reference to the static RwLock containing the configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more