pub type TomlConfig = SyncConfig<IndexMap<Txt, Value>>;
Expand description
Represents a config source that synchronizes with a TOML file.
Aliased Type§
struct TomlConfig { /* private fields */ }
Implementations
Source§impl<M> SyncConfig<M>where
M: ConfigMap,
impl<M> SyncConfig<M>where
M: ConfigMap,
Sourcepub fn sync(file: impl Into<PathBuf>) -> SyncConfig<M>
pub fn sync(file: impl Into<PathBuf>) -> SyncConfig<M>
Open write the file
Trait Implementations
Source§impl<M> AnyConfig for SyncConfig<M>where
M: ConfigMap,
impl<M> AnyConfig for SyncConfig<M>where
M: ConfigMap,
Source§fn get_raw(
&mut self,
key: Txt,
default: RawConfigValue,
insert: bool,
shared: bool,
) -> Box<dyn VarBoxed<RawConfigValue>>
fn get_raw( &mut self, key: Txt, default: RawConfigValue, insert: bool, shared: bool, ) -> Box<dyn VarBoxed<RawConfigValue>>
Gets a weak typed variable to the config
key
. Read moreSource§fn contains_key(&mut self, key: Txt) -> Box<dyn VarBoxed<bool>>
fn contains_key(&mut self, key: Txt) -> Box<dyn VarBoxed<bool>>
Gets a read-only variable that tracks if an entry for the
key
is in the backing storage.Source§fn status(&self) -> Box<dyn VarBoxed<ConfigStatus>>
fn status(&self) -> Box<dyn VarBoxed<ConfigStatus>>
Gets a read-only variable that represents the IO status of the config.
Source§fn low_memory(&mut self)
fn low_memory(&mut self)
Cleanup and flush RAM caches.