pub struct TierConfig {
pub hot_tier_capacity: usize,
pub hot_to_warm_threshold_secs: u64,
pub warm_to_cold_threshold_secs: u64,
pub auto_tier_enabled: bool,
pub tier_check_interval_secs: u64,
}Expand description
Tiered storage configuration parameters.
Fields§
§hot_tier_capacity: usizeMaximum number of items in the hot tier.
hot_to_warm_threshold_secs: u64Seconds of inactivity before promoting from hot to warm.
warm_to_cold_threshold_secs: u64Seconds of inactivity before demoting from warm to cold.
auto_tier_enabled: boolWhether automatic tiering is enabled.
tier_check_interval_secs: u64Interval between tier-check cycles (seconds).
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 (const: unstable) · 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
Source§impl<'de> Deserialize<'de> for TierConfig
impl<'de> Deserialize<'de> for TierConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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