pub struct ConfigCache { /* private fields */ }Expand description
Cache so that repeated calls with the same (root, cwd) skip filesystem I/O.
Implementations§
Source§impl ConfigCache
impl ConfigCache
pub fn new() -> Self
pub fn get_or_load( &self, root: &Path, cwd: &Path, ) -> Result<LoadedConfig, ConfigError>
pub fn clear(&self)
Trait Implementations§
Source§impl Default for ConfigCache
impl Default for ConfigCache
Source§fn default() -> ConfigCache
fn default() -> ConfigCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ConfigCache
impl RefUnwindSafe for ConfigCache
impl Send for ConfigCache
impl Sync for ConfigCache
impl Unpin for ConfigCache
impl UnsafeUnpin for ConfigCache
impl UnwindSafe for ConfigCache
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