pub struct RandomWarming { /* private fields */ }Expand description
Random warming strategy Warms cache by loading random keys
Implementations§
Trait Implementations§
Source§impl WarmingStrategy for RandomWarming
impl WarmingStrategy for RandomWarming
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 RandomWarming
impl RefUnwindSafe for RandomWarming
impl Send for RandomWarming
impl Sync for RandomWarming
impl Unpin for RandomWarming
impl UnsafeUnpin for RandomWarming
impl UnwindSafe for RandomWarming
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