pub struct EntropySample {
pub turn: u32,
pub score: f64,
pub rho: f64,
pub repeat_pressure: f64,
pub failure_rate: f64,
pub rollbacks_in_window: u32,
pub window_turns: u32,
}Expand description
One per-turn entropy measurement. All normalized components are in [0, 1].
Fields§
§turn: u32§score: f64Versioned default fold of the components (see ENTROPY_SCORE_VERSION).
rho: f64Context pressure after this boundary’s eviction pass (ContextManager::rho).
repeat_pressure: f64Consecutive-identical-turn streak, normalized against the RepeatFuse deny rung (0 when the streak is 1 — a first occurrence is not repetition — or the fuse is off).
failure_rate: f64Errored tool results / total tool results over the window.
rollbacks_in_window: u32Raw rollback count inside the window (normalize with window_turns).
window_turns: u32Effective window size (completed turns currently held, ≤ ENTROPY_WINDOW_TURNS).
Trait Implementations§
Source§impl Clone for EntropySample
impl Clone for EntropySample
Source§fn clone(&self) -> EntropySample
fn clone(&self) -> EntropySample
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 EntropySample
Source§impl Debug for EntropySample
impl Debug for EntropySample
Source§impl PartialEq for EntropySample
impl PartialEq for EntropySample
Source§fn eq(&self, other: &EntropySample) -> bool
fn eq(&self, other: &EntropySample) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntropySample
Auto Trait Implementations§
impl Freeze for EntropySample
impl RefUnwindSafe for EntropySample
impl Send for EntropySample
impl Sync for EntropySample
impl Unpin for EntropySample
impl UnsafeUnpin for EntropySample
impl UnwindSafe for EntropySample
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