pub enum ResolvedDataDir {
Explicit(PathBuf),
Project(PathBuf),
UserDefault(PathBuf),
UserFallback {
path: PathBuf,
orphaned_bundle: OrphanedProjectBundle,
},
}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.
UserFallback
A project store was present but could not be opened, so the live session selected the user store and must surface that the repository bundle beside the rejected store is no longer maintained.
Implementations§
Source§impl ResolvedDataDir
impl ResolvedDataDir
pub fn path(&self) -> &Path
pub fn rule_name(&self) -> &'static str
pub fn orphaned_bundle(&self) -> Option<&OrphanedProjectBundle>
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