pub struct ProjectAnalysisCache { /* private fields */ }Expand description
Project analysis caching wrapper
Implementations§
Source§impl ProjectAnalysisCache
impl ProjectAnalysisCache
Sourcepub fn get_analysis<T: DeserializeOwned + Serialize>(
&self,
project_path: &Path,
) -> Result<Option<T>, Box<dyn Error>>
pub fn get_analysis<T: DeserializeOwned + Serialize>( &self, project_path: &Path, ) -> Result<Option<T>, Box<dyn Error>>
Get cached project analysis
Sourcepub fn cache_analysis<T: Serialize>(
&self,
project_path: &Path,
analysis: &T,
) -> Result<(), Box<dyn Error>>
pub fn cache_analysis<T: Serialize>( &self, project_path: &Path, analysis: &T, ) -> Result<(), Box<dyn Error>>
Cache project analysis
Sourcepub fn invalidate_analysis(
&self,
project_path: &Path,
) -> Result<(), Box<dyn Error>>
pub fn invalidate_analysis( &self, project_path: &Path, ) -> Result<(), Box<dyn Error>>
Invalidate project analysis cache
Sourcepub fn stats(&self) -> &CacheStats
pub fn stats(&self) -> &CacheStats
Get cache statistics
Auto Trait Implementations§
impl Freeze for ProjectAnalysisCache
impl RefUnwindSafe for ProjectAnalysisCache
impl Send for ProjectAnalysisCache
impl Sync for ProjectAnalysisCache
impl Unpin for ProjectAnalysisCache
impl UnwindSafe for ProjectAnalysisCache
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