pub trait ProgressiveLoadingService: Send + Sync {
// Required methods
fn load_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillMetadata>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_skill_content<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
context: Option<LoadingContext>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LoadedSkill>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_reference_content<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
skill_id: &'life1 str,
reference_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn preload_relevant_skills<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<PreloadedSkill>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn optimize_loading_strategy<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<LoadingStrategy, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn clear_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_cache_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CacheStats, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Progressive loading service trait
Required Methods§
Sourcefn load_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillMetadata>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_metadata<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillMetadata>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load metadata for multiple skills (in-memory)
Sourcefn load_skill_content<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
context: Option<LoadingContext>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LoadedSkill>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_skill_content<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_ids: &'life1 [String],
context: Option<LoadingContext>,
) -> Pin<Box<dyn Future<Output = Result<Vec<LoadedSkill>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load complete skill content based on context
Sourcefn load_reference_content<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
skill_id: &'life1 str,
reference_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load_reference_content<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
skill_id: &'life1 str,
reference_path: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Load reference content for a specific file
Sourcefn preload_relevant_skills<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<PreloadedSkill>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn preload_relevant_skills<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<PreloadedSkill>, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Preload relevant skills based on context
Sourcefn optimize_loading_strategy<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<LoadingStrategy, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn optimize_loading_strategy<'life0, 'async_trait>(
&'life0 self,
context: LoadingContext,
) -> Pin<Box<dyn Future<Output = Result<LoadingStrategy, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optimize loading strategy based on context
Sourcefn clear_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_cache<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clear all caches
Sourcefn get_cache_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CacheStats, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_cache_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CacheStats, ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get cache statistics