pub struct TierConfig {
pub hot_capacity: usize,
pub warm_capacity: usize,
pub promote_after_accesses: u32,
pub evict_after_ms: u64,
}Expand description
Tier configuration for storage management
Fields§
§hot_capacity: usizeHot tier (RAM) capacity in bytes
warm_capacity: usizeWarm tier (NVMe) capacity in bytes
promote_after_accesses: u32Number of accesses before promoting to hotter tier
evict_after_ms: u64Milliseconds since last access before evicting to colder tier
Implementations§
Trait Implementations§
Source§impl Clone for TierConfig
impl Clone for TierConfig
Source§fn clone(&self) -> TierConfig
fn clone(&self) -> TierConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TierConfig
impl Debug for TierConfig
Auto Trait Implementations§
impl Freeze for TierConfig
impl RefUnwindSafe for TierConfig
impl Send for TierConfig
impl Sync for TierConfig
impl Unpin 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