pub enum TRAStarWaypointDatabasePolicyProfile {
V1,
}Expand description
Named admission / promotion / demotion parameter bundle for the curated policy lane.
Prefer TRAStarWaypointDatabasePolicyProfileBuilder over composing fixed-rule
builders by hand when the portfolio needs a single stable algorithm id.
Variants§
V1
v1 fixed thresholds: admission cost 2.5, promotion after 2 probation hits,
protected overflow evicts least-recent protected.
Implementations§
Source§impl TRAStarWaypointDatabasePolicyProfile
impl TRAStarWaypointDatabasePolicyProfile
Sourcepub const fn name(self) -> &'static str
pub const fn name(self) -> &'static str
Stable algorithm name string for this profile (matches builder name()).
Sourcepub const fn admission_cost_threshold(self) -> f64
pub const fn admission_cost_threshold(self) -> f64
Minimum portal segment cost required to admit a midpoint into the cache.
Sourcepub const fn promotion_hits_required(self) -> usize
pub const fn promotion_hits_required(self) -> usize
Probation hits required before promoting a midpoint into the protected tier.
Trait Implementations§
Source§impl Clone for TRAStarWaypointDatabasePolicyProfile
impl Clone for TRAStarWaypointDatabasePolicyProfile
Source§fn clone(&self) -> TRAStarWaypointDatabasePolicyProfile
fn clone(&self) -> TRAStarWaypointDatabasePolicyProfile
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 TRAStarWaypointDatabasePolicyProfile
Source§impl Default for TRAStarWaypointDatabasePolicyProfile
impl Default for TRAStarWaypointDatabasePolicyProfile
Source§fn default() -> TRAStarWaypointDatabasePolicyProfile
fn default() -> TRAStarWaypointDatabasePolicyProfile
Returns the “default value” for a type. Read more
impl Eq for TRAStarWaypointDatabasePolicyProfile
impl StructuralPartialEq for TRAStarWaypointDatabasePolicyProfile
Auto Trait Implementations§
impl Freeze for TRAStarWaypointDatabasePolicyProfile
impl RefUnwindSafe for TRAStarWaypointDatabasePolicyProfile
impl Send for TRAStarWaypointDatabasePolicyProfile
impl Sync for TRAStarWaypointDatabasePolicyProfile
impl Unpin for TRAStarWaypointDatabasePolicyProfile
impl UnsafeUnpin for TRAStarWaypointDatabasePolicyProfile
impl UnwindSafe for TRAStarWaypointDatabasePolicyProfile
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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