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