pub struct RegionTierState {
pub region_id: OwnedRegionId,
pub tier: Tier,
pub last_access_epoch: u32,
pub cut_value: u16,
pub recency_score: u16,
/* private fields */
}Expand description
Per-region metadata tracked by the tier manager.
Fields§
§region_id: OwnedRegionIdThe region identifier.
tier: TierCurrent tier placement.
last_access_epoch: u32Epoch of last access (monotonically increasing).
cut_value: u16Coherence graph cut-value for this region (basis points, 0..=10_000).
Defaults to 0 when coherence engine is absent (DC-1).
recency_score: u16Recency score (basis points, 0..=10_000). Decays each epoch.
Implementations§
Source§impl RegionTierState
impl RegionTierState
Sourcepub const fn residency_score(self) -> u16
pub const fn residency_score(self) -> u16
Compute the composite residency score: cut_value + recency_score.
Saturates at u16::MAX to avoid overflow.
Trait Implementations§
Source§impl Clone for RegionTierState
impl Clone for RegionTierState
Source§fn clone(&self) -> RegionTierState
fn clone(&self) -> RegionTierState
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 moreimpl Copy for RegionTierState
Auto Trait Implementations§
impl Freeze for RegionTierState
impl RefUnwindSafe for RegionTierState
impl Send for RegionTierState
impl Sync for RegionTierState
impl Unpin for RegionTierState
impl UnsafeUnpin for RegionTierState
impl UnwindSafe for RegionTierState
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