pub struct ThrottleWindow {
pub window_ms: u64,
pub thermal_frac: Option<f64>,
pub power_cap_frac: Option<f64>,
pub thermal_active: bool,
}Expand description
2026-09-26: One differenced observation of the throttle counters.
Fields§
§window_ms: u642026-09-26: Time between the two reads, ms.
thermal_frac: Option<f64>2026-09-26: Fraction of the window (clamped to 0.0..=1.0) the clocks were
held by a thermal reason: SW thermal, HW thermal or HW power brake. None
when none of the three was readable or one went backwards.
A lower bound: the three counters can overlap, so the union lies between the largest single counter and their sum, and the largest is reported, so the figure never overstates throttling.
power_cap_frac: Option<f64>2026-09-26: Fraction of the window spent under the SW power cap, kept apart
from thermal_frac (see the module docs). None when unreadable or when
its counter went backwards.
thermal_active: bool2026-09-26: True when a thermal counter advanced in this window and none went backwards.
Trait Implementations§
Source§impl Clone for ThrottleWindow
impl Clone for ThrottleWindow
Source§fn clone(&self) -> ThrottleWindow
fn clone(&self) -> ThrottleWindow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ThrottleWindow
impl Debug for ThrottleWindow
Source§impl PartialEq for ThrottleWindow
impl PartialEq for ThrottleWindow
impl Copy for ThrottleWindow
impl StructuralPartialEq for ThrottleWindow
Auto Trait Implementations§
impl Freeze for ThrottleWindow
impl RefUnwindSafe for ThrottleWindow
impl Send for ThrottleWindow
impl Sync for ThrottleWindow
impl Unpin for ThrottleWindow
impl UnwindSafe for ThrottleWindow
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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