pub struct ConfigStore { /* private fields */ }Implementations§
Source§impl ConfigStore
impl ConfigStore
pub fn open(path: impl Into<PathBuf>) -> Self
pub fn default_path() -> Result<Self>
pub fn path(&self) -> &Path
pub fn load(&self) -> Result<MeshConfig>
pub fn save(&self, config: &MeshConfig) -> Result<()>
pub fn update<F>(&self, edit: F) -> Result<MeshConfig>
pub fn edit_preserving<F>(&self, edit: F) -> Result<MeshConfig>
pub fn model_refs(&self) -> Result<Vec<String>>
pub fn add_model_ref(&self, model_ref: &str) -> Result<Vec<String>>
pub fn remove_model_ref(&self, model_ref: &str) -> Result<Vec<String>>
Trait Implementations§
Source§impl Clone for ConfigStore
impl Clone for ConfigStore
Source§fn clone(&self) -> ConfigStore
fn clone(&self) -> ConfigStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigStore
impl RefUnwindSafe for ConfigStore
impl Send for ConfigStore
impl Sync for ConfigStore
impl Unpin for ConfigStore
impl UnsafeUnpin for ConfigStore
impl UnwindSafe for ConfigStore
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