pub enum AutoMemoryStrategy {
Conservative,
Balanced,
Aggressive,
Extreme,
}Expand description
Automatic memory management strategies
Variants§
Conservative
Conservative memory management - minimal offloading
Balanced
Balanced approach - moderate offloading based on memory pressure
Aggressive
Aggressive offloading - maximize CPU utilization
Extreme
Extreme offloading - offload everything possible
Implementations§
Source§impl AutoMemoryStrategy
impl AutoMemoryStrategy
Sourcepub fn pressure_threshold(&self) -> f32
pub fn pressure_threshold(&self) -> f32
Get the memory pressure threshold for triggering offloading
Sourcepub fn aggressiveness(&self) -> f32
pub fn aggressiveness(&self) -> f32
Get the offloading aggressiveness factor (0.0 to 1.0)
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description
Trait Implementations§
Source§impl Clone for AutoMemoryStrategy
impl Clone for AutoMemoryStrategy
Source§fn clone(&self) -> AutoMemoryStrategy
fn clone(&self) -> AutoMemoryStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoMemoryStrategy
impl Debug for AutoMemoryStrategy
Source§impl PartialEq for AutoMemoryStrategy
impl PartialEq for AutoMemoryStrategy
impl Copy for AutoMemoryStrategy
impl Eq for AutoMemoryStrategy
impl StructuralPartialEq for AutoMemoryStrategy
Auto Trait Implementations§
impl Freeze for AutoMemoryStrategy
impl RefUnwindSafe for AutoMemoryStrategy
impl Send for AutoMemoryStrategy
impl Sync for AutoMemoryStrategy
impl Unpin for AutoMemoryStrategy
impl UnsafeUnpin for AutoMemoryStrategy
impl UnwindSafe for AutoMemoryStrategy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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