Skip to main content

update

Function update 

Source
pub fn update<T>(key: &str, effective: &T)
where T: Serialize + Default + 'static,
Expand description

Re-register a config section and notify listeners.

Call this when config is reloaded (e.g., from ConfigReloader). Listeners registered via on_change are notified with the new effective value.