pub struct UsagePatternAnalyzer { /* private fields */ }Expand description
Usage pattern analyzer for predictive loading
Implementations§
Source§impl UsagePatternAnalyzer
impl UsagePatternAnalyzer
Sourcepub fn new(config: AnalysisConfig) -> Self
pub fn new(config: AnalysisConfig) -> Self
Create new usage pattern analyzer
Sourcepub async fn record_access(&self, model_id: &str)
pub async fn record_access(&self, model_id: &str)
Record model access for pattern analysis
Sourcepub async fn predict_next_models(
&self,
current_model: &str,
count: usize,
) -> Result<Vec<(String, f32)>>
pub async fn predict_next_models( &self, current_model: &str, count: usize, ) -> Result<Vec<(String, f32)>>
Predict next likely models based on current access
Sourcepub async fn analyze_patterns(&self) -> Result<PatternAnalysisResult>
pub async fn analyze_patterns(&self) -> Result<PatternAnalysisResult>
Analyze usage patterns and update internal models
Auto Trait Implementations§
impl Freeze for UsagePatternAnalyzer
impl !RefUnwindSafe for UsagePatternAnalyzer
impl Send for UsagePatternAnalyzer
impl Sync for UsagePatternAnalyzer
impl Unpin for UsagePatternAnalyzer
impl UnsafeUnpin for UsagePatternAnalyzer
impl !UnwindSafe for UsagePatternAnalyzer
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 more