pub struct PersistentContextManager { /* private fields */ }Expand description
Context manager with persistence support
Implementations§
Source§impl PersistentContextManager
impl PersistentContextManager
Sourcepub fn new(cache_path: PathBuf, config: ContextConfig) -> Result<Self>
pub fn new(cache_path: PathBuf, config: ContextConfig) -> Result<Self>
Create new persistent context manager
Sourcepub fn save_cache(&self) -> Result<()>
pub fn save_cache(&self) -> Result<()>
Save context state to cache
Sourcepub fn inner(&self) -> &ContextManager
pub fn inner(&self) -> &ContextManager
Get inner context manager
Sourcepub fn inner_mut(&mut self) -> &mut ContextManager
pub fn inner_mut(&mut self) -> &mut ContextManager
Get mutable inner context manager
Auto Trait Implementations§
impl Freeze for PersistentContextManager
impl RefUnwindSafe for PersistentContextManager
impl Send for PersistentContextManager
impl Sync for PersistentContextManager
impl Unpin for PersistentContextManager
impl UnsafeUnpin for PersistentContextManager
impl UnwindSafe for PersistentContextManager
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