pub enum ThermalMode {
Cool,
Balanced,
MaxPerf,
}Expand description
Thermal/energy execution profile. This is the headline “green” knob: it bounds how aggressively a run uses the CPU so a laptop does not cook itself sustaining turbo across all cores.
Variants§
Cool
Gentle on the machine — quarter of cores, small batches, summary audit.
Balanced
Laptop-safe default — half the cores, normal batches, full audit.
MaxPerf
Benchmark mode — all cores, large batches, minimal audit overhead.
Implementations§
Source§impl ThermalMode
impl ThermalMode
pub fn as_str(self) -> &'static str
pub fn from_str(s: &str) -> Option<Self>
Sourcepub fn preset_batch_size(self) -> usize
pub fn preset_batch_size(self) -> usize
Preset batch size for this thermal mode. Smaller batches under Cool
keep sustained heat spikes down; larger batches under MaxPerf favor
throughput.
Sourcepub fn preset_audit_mode(self) -> AuditMode
pub fn preset_audit_mode(self) -> AuditMode
Preset audit depth for this thermal mode. Cool and MaxPerf both pick
Summary (minimal cold-path overhead — one to be gentle, the other to
keep benchmark timing clean); Balanced keeps Full audit for normal
operation.
Trait Implementations§
Source§impl Clone for ThermalMode
impl Clone for ThermalMode
Source§fn clone(&self) -> ThermalMode
fn clone(&self) -> ThermalMode
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 ThermalMode
impl Debug for ThermalMode
Source§impl PartialEq for ThermalMode
impl PartialEq for ThermalMode
Source§fn eq(&self, other: &ThermalMode) -> bool
fn eq(&self, other: &ThermalMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ThermalMode
impl Eq for ThermalMode
impl StructuralPartialEq for ThermalMode
Auto Trait Implementations§
impl Freeze for ThermalMode
impl RefUnwindSafe for ThermalMode
impl Send for ThermalMode
impl Sync for ThermalMode
impl Unpin for ThermalMode
impl UnsafeUnpin for ThermalMode
impl UnwindSafe for ThermalMode
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> 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