pub struct OpenedSettings {
pub store: SettingsStore,
pub window_state: Option<WindowStateService>,
pub registry: SettingsRegistry,
/* private fields */
}Expand description
The outcome of SettingsBundle::open: ready-to-register handles.
Clone is cheap and shared, not deep. Each contained service
is internally Rc<>-shaped (matching ListModel<T> / TreeModel<T>
/ Signal<T>); cloning produces a second handle to the same
in-memory state and the same shared I/O thread queue. Mutations
through any clone are visible to every clone, and flush_all /
Drop semantics are unchanged.
Fields§
§store: SettingsStore§window_state: Option<WindowStateService>§registry: SettingsRegistryRegistry mapping every managed service’s canonical path to its
live Reloadable handle, so a crate::SettingsWatcher event
can be dispatched to the right one. Exposed so application code
can register its own ad hoc crate::SettingsFile /
crate::PersistedListModel / crate::MruList handles into
the same registry (reachable elsewhere via
ctx.app_state::<SettingsRegistry>() once installed).
Implementations§
Source§impl OpenedSettings
impl OpenedSettings
Sourcepub fn flush_all(&self) -> Result<(), SettingsBundleError>
pub fn flush_all(&self) -> Result<(), SettingsBundleError>
Synchronously flush every active service.
Trait Implementations§
Source§impl Clone for OpenedSettings
impl Clone for OpenedSettings
Source§fn clone(&self) -> OpenedSettings
fn clone(&self) -> OpenedSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more