pub struct LastAppPrewarmBackend;Expand description
Prewarm the app most recently switched to.
Synthetic traces do not carry explicit “was prewarmed” action history, so this
backend intentionally proxies the same signal as LastForegroundBackend: the
most recent non-current foreground target. This keeps the baseline realistic
and deterministic while remaining trivial to upgrade once traces expose real
prewarm feedback.
Trait Implementations§
Source§impl NextAppPredictor for LastAppPrewarmBackend
impl NextAppPredictor for LastAppPrewarmBackend
fn name(&self) -> &'static str
fn predict( &self, ctx: &StructuredContext, current_app: &str, candidates: &[String], ) -> PredictionResult
fn train(&mut self, _train: &[NextAppLabel])
Auto Trait Implementations§
impl Freeze for LastAppPrewarmBackend
impl RefUnwindSafe for LastAppPrewarmBackend
impl Send for LastAppPrewarmBackend
impl Sync for LastAppPrewarmBackend
impl Unpin for LastAppPrewarmBackend
impl UnsafeUnpin for LastAppPrewarmBackend
impl UnwindSafe for LastAppPrewarmBackend
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