pub struct AsobiPaths {
pub data_dir: PathBuf,
pub config_dir: PathBuf,
pub topics_dir: PathBuf,
pub cache_dir: PathBuf,
pub observation_limit: Option<usize>,
}Fields§
§data_dir: PathBuf§config_dir: PathBuf§topics_dir: PathBuf§cache_dir: PathBuf§observation_limit: Option<usize>Implementations§
Source§impl AsobiPaths
impl AsobiPaths
pub fn resolve() -> Self
Sourcepub fn resolve_from(start: &Path) -> Self
pub fn resolve_from(start: &Path) -> Self
Resolution order:
ASOBI_HOMEenv var (forces a unified root, bypasses discovery).- Nearest
asobi.tomlwalking up fromstart— relative paths in the config are anchored to the config file’s directory, not cwd. - Nearest
.asobi/directory walking up fromstart. - XDG fallback.
pub fn caches_dir(&self) -> PathBuf
Auto Trait Implementations§
impl Freeze for AsobiPaths
impl RefUnwindSafe for AsobiPaths
impl Send for AsobiPaths
impl Sync for AsobiPaths
impl Unpin for AsobiPaths
impl UnsafeUnpin for AsobiPaths
impl UnwindSafe for AsobiPaths
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