pub struct TierPolicy {
pub tier: StorageTier,
pub max_age_ms: Option<u64>,
pub min_access_count: Option<u64>,
pub max_block_size_bytes: Option<u64>,
pub min_block_size_bytes: Option<u64>,
}Expand description
Policy that governs when blocks should be demoted out of a given tier.
All specified conditions are evaluated independently: the first one that
triggers causes a demotion. None means “no limit / don’t check”.
Fields§
§tier: StorageTierThe tier this policy applies to.
max_age_ms: Option<u64>Maximum idle time in milliseconds. Blocks whose
last_accessed_ms + max_age_ms < now_ms are considered stale.
min_access_count: Option<u64>Minimum access count required to stay in this tier. Blocks with fewer accesses than this threshold are under-accessed.
max_block_size_bytes: Option<u64>Blocks larger than this byte count should not reside in this tier.
min_block_size_bytes: Option<u64>Blocks smaller than this byte count should not reside in this tier.
Trait Implementations§
Source§impl Clone for TierPolicy
impl Clone for TierPolicy
Source§fn clone(&self) -> TierPolicy
fn clone(&self) -> TierPolicy
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 moreAuto Trait Implementations§
impl Freeze for TierPolicy
impl RefUnwindSafe for TierPolicy
impl Send for TierPolicy
impl Sync for TierPolicy
impl Unpin for TierPolicy
impl UnsafeUnpin for TierPolicy
impl UnwindSafe for TierPolicy
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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