pub enum HomeostasisAction {
None,
TrimOutputs,
EvictProbationary {
target_tokens: usize,
},
UnloadIndices,
EvictProtected {
target_tokens: usize,
},
EmergencyDrop,
}Expand description
Actions the homeostasis system can recommend.
Variants§
None
No action needed.
TrimOutputs
Trim compressed outputs in cache (max 2 per entry instead of 3).
EvictProbationary
Evict probationary cache entries (read_count <= 1).
UnloadIndices
Unload heavy indices from memory.
EvictProtected
Evict protected cache entries with lowest Boltzmann energy.
EmergencyDrop
Emergency: drop all non-essential structures.
Trait Implementations§
Source§impl Clone for HomeostasisAction
impl Clone for HomeostasisAction
Source§fn clone(&self) -> HomeostasisAction
fn clone(&self) -> HomeostasisAction
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 HomeostasisAction
impl Debug for HomeostasisAction
Source§impl PartialEq for HomeostasisAction
impl PartialEq for HomeostasisAction
Source§fn eq(&self, other: &HomeostasisAction) -> bool
fn eq(&self, other: &HomeostasisAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HomeostasisAction
Auto Trait Implementations§
impl Freeze for HomeostasisAction
impl RefUnwindSafe for HomeostasisAction
impl Send for HomeostasisAction
impl Sync for HomeostasisAction
impl Unpin for HomeostasisAction
impl UnsafeUnpin for HomeostasisAction
impl UnwindSafe for HomeostasisAction
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
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