pub struct Dirs {
pub config: PathBuf,
pub cache: PathBuf,
pub data: PathBuf,
pub state: PathBuf,
}Expand description
gravityfile’s directories.
Fields§
§config: PathBufSettings and plugins.
cache: PathBufData that can be rebuilt.
data: PathBufData worth keeping, such as saved scans.
state: PathBufLogs and other state.
Implementations§
Source§impl Dirs
impl Dirs
Sourcepub fn discover() -> Option<Self>
pub fn discover() -> Option<Self>
gravityfile’s directories for this user, or None without a home
directory. Reads only; see migrate_legacy_config.
Sourcepub fn settings_file(&self) -> PathBuf
pub fn settings_file(&self) -> PathBuf
The explorer’s saved settings.
Sourcepub fn keymap_file(&self) -> PathBuf
pub fn keymap_file(&self) -> PathBuf
Key binding overrides for the explorer.
Sourcepub fn history_file(&self) -> PathBuf
pub fn history_file(&self) -> PathBuf
The history of scan totals.
Sourcepub fn plugin_dir(&self) -> PathBuf
pub fn plugin_dir(&self) -> PathBuf
Installed plugins.
Trait Implementations§
impl Eq for Dirs
impl StructuralPartialEq for Dirs
Auto Trait Implementations§
impl Freeze for Dirs
impl RefUnwindSafe for Dirs
impl Send for Dirs
impl Sync for Dirs
impl Unpin for Dirs
impl UnsafeUnpin for Dirs
impl UnwindSafe for Dirs
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