pub struct AppPaths { /* private fields */ }Expand description
Fully injected filesystem roots used by the coding product.
Implementations§
Source§impl AppPaths
impl AppPaths
Sourcepub fn new(
config_dir: impl Into<PathBuf>,
state_dir: impl Into<PathBuf>,
data_dir: impl Into<PathBuf>,
) -> Result<Self, CodingError>
pub fn new( config_dir: impl Into<PathBuf>, state_dir: impl Into<PathBuf>, data_dir: impl Into<PathBuf>, ) -> Result<Self, CodingError>
Creates paths without consulting process environment or a real home.
§Errors
Rejects non-absolute roots or roots containing no final component.
Sourcepub fn config_dir(&self) -> &Path
pub fn config_dir(&self) -> &Path
Returns the configuration directory.
Sourcepub fn settings_file(&self) -> PathBuf
pub fn settings_file(&self) -> PathBuf
Returns the global settings file.
Sourcepub fn providers_file(&self) -> PathBuf
pub fn providers_file(&self) -> PathBuf
Returns the global provider configuration file.
Sourcepub fn trust_file(&self) -> PathBuf
pub fn trust_file(&self) -> PathBuf
Returns the trust decision store.
Sourcepub fn session_database(&self) -> PathBuf
pub fn session_database(&self) -> PathBuf
Returns the SQLite session database path.
Trait Implementations§
impl Eq for AppPaths
impl StructuralPartialEq for AppPaths
Auto Trait Implementations§
impl Freeze for AppPaths
impl RefUnwindSafe for AppPaths
impl Send for AppPaths
impl Sync for AppPaths
impl Unpin for AppPaths
impl UnsafeUnpin for AppPaths
impl UnwindSafe for AppPaths
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.