pub struct ConfigStore { /* private fields */ }Implementations§
Source§impl ConfigStore
impl ConfigStore
pub fn load() -> Result<Self>
pub fn load_from(path: PathBuf) -> Result<Self>
pub fn path(&self) -> &Path
pub fn data(&self) -> &ConfigData
pub fn data_mut(&mut self) -> &mut ConfigData
pub fn gateway_url(&self) -> String
pub fn gateway_source(&self) -> &'static str
pub fn find_project(&self, id: &str) -> Option<&ProjectEntry>
pub fn upsert_project(&mut self, project: ProjectEntry)
pub fn remove_project(&mut self, id: &str)
pub fn forget_local_state(&mut self)
pub fn save(&self) -> Result<()>
Trait Implementations§
Auto 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