pub struct TierConfig {
pub warm_threshold: u8,
pub cold_threshold: u8,
pub scan_batch_size: usize,
}Expand description
Configuration for automatic tier migration thresholds.
Fields§
§warm_threshold: u8LFU counter below this threshold triggers demotion from hot to warm.
cold_threshold: u8LFU counter below this threshold triggers demotion from warm to cold.
scan_batch_size: usizeNumber of keys to scan per migration cycle.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TierConfig
impl RefUnwindSafe for TierConfig
impl Send for TierConfig
impl Sync for TierConfig
impl Unpin for TierConfig
impl UnsafeUnpin for TierConfig
impl UnwindSafe for TierConfig
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