pub struct LazyLoadingManager { /* private fields */ }
Expand description
Lazy loading manager for coordinating multiple lazy loaders
Implementations§
Source§impl LazyLoadingManager
impl LazyLoadingManager
Sourcepub fn new(fs_manager: FileSystemManager, cache: ProjectManagerCache) -> Self
pub fn new(fs_manager: FileSystemManager, cache: ProjectManagerCache) -> Self
Create a new lazy loading manager
Sourcepub fn create_spec_loader(
&self,
project_name: &str,
spec_id: &str,
) -> LazySpecificationContent
pub fn create_spec_loader( &self, project_name: &str, spec_id: &str, ) -> LazySpecificationContent
Create a lazy specification content loader
Sourcepub async fn preload_specs_background(
&self,
project_name: &str,
spec_ids: &[String],
)
pub async fn preload_specs_background( &self, project_name: &str, spec_ids: &[String], )
Preload specifications in the background
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn cleanup_cache(&self)
pub fn cleanup_cache(&self)
Clean up expired cache entries
Trait Implementations§
Source§impl Clone for LazyLoadingManager
impl Clone for LazyLoadingManager
Source§fn clone(&self) -> LazyLoadingManager
fn clone(&self) -> LazyLoadingManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LazyLoadingManager
impl !RefUnwindSafe for LazyLoadingManager
impl Send for LazyLoadingManager
impl Sync for LazyLoadingManager
impl Unpin for LazyLoadingManager
impl !UnwindSafe for LazyLoadingManager
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