pub struct ConfigLoader;
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
pub fn get_default_config_path() -> Result<PathBuf>
pub fn ensure_config_dir() -> Result<PathBuf>
pub fn get_default_database_path() -> Result<PathBuf>
pub fn ensure_data_dir() -> Result<PathBuf>
pub async fn load_from_file<P: AsRef<Path>>(path: P) -> Result<AppConfig>
pub fn load_from_file_sync<P: AsRef<Path>>(path: P) -> Result<AppConfig>
pub fn validate_json_file<P: AsRef<Path>>(path: P) -> Result<()>
Auto Trait Implementations§
impl Freeze for ConfigLoader
impl RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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