pub struct ProgressiveLoadingServiceImpl { /* private fields */ }Expand description
Progressive loading service implementation
Implementations§
Source§impl ProgressiveLoadingServiceImpl
impl ProgressiveLoadingServiceImpl
Sourcepub async fn get_cache_stats(&self) -> CacheStats
pub async fn get_cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub async fn clear_cache(&self)
pub async fn clear_cache(&self)
Clear all caches
Trait Implementations§
Source§impl ProgressiveLoadingService for ProgressiveLoadingServiceImpl
impl ProgressiveLoadingService for ProgressiveLoadingServiceImpl
Source§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_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)
Source§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_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
Source§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 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
Source§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 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
Source§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 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
Source§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 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
Source§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,
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
Auto Trait Implementations§
impl Freeze for ProgressiveLoadingServiceImpl
impl !RefUnwindSafe for ProgressiveLoadingServiceImpl
impl Send for ProgressiveLoadingServiceImpl
impl Sync for ProgressiveLoadingServiceImpl
impl Unpin for ProgressiveLoadingServiceImpl
impl UnsafeUnpin for ProgressiveLoadingServiceImpl
impl !UnwindSafe for ProgressiveLoadingServiceImpl
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.