pub struct CompressCounters {
pub compressions: usize,
pub strikes: usize,
pub disabled: bool,
pub last_reclaim: Option<f32>,
}Expand description
Read-only snapshot of a session’s compression accounting, surfaced by the
TUI’s /memory (Step 18.6, #247). Plain data so display code and its
tests can build arbitrary states without driving the pipeline.
Fields§
§compressions: usizeCompressions recorded this session: the loop’s hard-budget passes
plus fired /compress runs (both feed CompressState).
strikes: usizeConsecutive ineffective (<10% reclaim) recent compressions — 0, 1,
or 2. Two latches disabled.
disabled: boolAnti-thrash latch: auto-compression is disabled for the session.
/new (and /conversation restore) re-arm it — F4.
last_reclaim: Option<f32>Reclaim fraction (0.0–1.0) of the most recent recorded compression;
None before any compression recorded.
Trait Implementations§
Source§impl Clone for CompressCounters
impl Clone for CompressCounters
Source§fn clone(&self) -> CompressCounters
fn clone(&self) -> CompressCounters
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 CompressCounters
Source§impl Debug for CompressCounters
impl Debug for CompressCounters
Source§impl PartialEq for CompressCounters
impl PartialEq for CompressCounters
Source§fn eq(&self, other: &CompressCounters) -> bool
fn eq(&self, other: &CompressCounters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompressCounters
Auto Trait Implementations§
impl Freeze for CompressCounters
impl RefUnwindSafe for CompressCounters
impl Send for CompressCounters
impl Sync for CompressCounters
impl Unpin for CompressCounters
impl UnsafeUnpin for CompressCounters
impl UnwindSafe for CompressCounters
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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