Skip to main content

mutate_settings

Function mutate_settings 

Source
pub fn mutate_settings<T>(
    mutator: impl FnOnce(&mut Settings) -> Result<T>,
) -> Result<T>
Expand description

Applies a mutation to the shared SETTINGS store and broadcasts the resulting snapshot on SETTINGS_CHANGED if it succeeds.