pub struct StorageModeHandler;Expand description
Storage mode handler
Implementations§
Source§impl StorageModeHandler
impl StorageModeHandler
Sourcepub fn load_for_mode(
mode: StorageMode,
global_path: Option<&Path>,
project_path: Option<&Path>,
) -> StorageResult<Config>
pub fn load_for_mode( mode: StorageMode, global_path: Option<&Path>, project_path: Option<&Path>, ) -> StorageResult<Config>
Load configuration based on storage mode
- GlobalOnly: Load only from global path
- ProjectOnly: Load only from project path
- Merged: Load from both, with project overriding global
Sourcepub fn verify_isolation(
mode: StorageMode,
global_path: Option<&Path>,
project_path: Option<&Path>,
) -> StorageResult<bool>
pub fn verify_isolation( mode: StorageMode, global_path: Option<&Path>, project_path: Option<&Path>, ) -> StorageResult<bool>
Verify that a mode is properly isolated
For GlobalOnly mode, ensures no project config is loaded. For ProjectOnly mode, ensures no global config is loaded.
Auto Trait Implementations§
impl Freeze for StorageModeHandler
impl RefUnwindSafe for StorageModeHandler
impl Send for StorageModeHandler
impl Sync for StorageModeHandler
impl Unpin for StorageModeHandler
impl UnwindSafe for StorageModeHandler
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