pub enum ResolvedDataDir {
Explicit(PathBuf),
Project(PathBuf),
UserDefault(PathBuf),
}Expand description
Where the data directory came from — logged at startup so the winning resolution rule is always visible.
Variants§
Explicit(PathBuf)
KMP_MCP_DATA_DIR was set.
Project(PathBuf)
<project-root>/.kernel/, project root found by walking up to .git.
UserDefault(PathBuf)
Per-user fallback under the platform data dir.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedDataDir
impl Clone for ResolvedDataDir
Source§fn clone(&self) -> ResolvedDataDir
fn clone(&self) -> ResolvedDataDir
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedDataDir
impl Debug for ResolvedDataDir
impl Eq for ResolvedDataDir
Source§impl PartialEq for ResolvedDataDir
impl PartialEq for ResolvedDataDir
impl StructuralPartialEq for ResolvedDataDir
Auto Trait Implementations§
impl Freeze for ResolvedDataDir
impl RefUnwindSafe for ResolvedDataDir
impl Send for ResolvedDataDir
impl Sync for ResolvedDataDir
impl Unpin for ResolvedDataDir
impl UnsafeUnpin for ResolvedDataDir
impl UnwindSafe for ResolvedDataDir
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