pub struct ConfigRepository { /* private fields */ }Implementations§
Source§impl ConfigRepository
impl ConfigRepository
pub fn load(path: impl AsRef<Path>) -> Result<Self>
pub fn parse(toml_str: &str) -> Result<Self>
pub fn get_device(&self, id: &str) -> Option<DeviceConfig>
pub fn device_ids(&self) -> Vec<String>
pub fn defaults(&self) -> &DefaultsConfig
pub fn set_override(&mut self, device_id: &str, key: &str, value: Value)
pub fn clear_overrides(&mut self, device_id: &str)
Auto Trait Implementations§
impl Freeze for ConfigRepository
impl RefUnwindSafe for ConfigRepository
impl Send for ConfigRepository
impl Sync for ConfigRepository
impl Unpin for ConfigRepository
impl UnsafeUnpin for ConfigRepository
impl UnwindSafe for ConfigRepository
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