pub struct PriorityWarming { /* private fields */ }Expand description
Priority-based warming strategy Warms critical keys first based on priority scores
Implementations§
Trait Implementations§
Source§impl WarmingStrategy for PriorityWarming
impl WarmingStrategy for PriorityWarming
Source§fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
batch_size: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_batch<'life0, 'async_trait>(
&'life0 mut self,
batch_size: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<CacheKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get next batch of keys to warm
Source§fn is_complete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_complete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if warming is complete
Auto Trait Implementations§
impl Freeze for PriorityWarming
impl RefUnwindSafe for PriorityWarming
impl Send for PriorityWarming
impl Sync for PriorityWarming
impl Unpin for PriorityWarming
impl UnsafeUnpin for PriorityWarming
impl UnwindSafe for PriorityWarming
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> 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