pub struct ManualCompressOutcome {
pub messages: Vec<Value>,
pub fired: bool,
pub messages_before: usize,
pub messages_after: usize,
pub tokens_before: usize,
pub tokens_after: usize,
pub how: &'static str,
pub notice: Option<String>,
}Expand description
What a user-initiated compress_user_initiated run did — the public
face of [CompressOutcome], with the message counts the honesty notice
needs (“never claim savings that didn’t happen”).
Fields§
§messages: Vec<Value>The assembled working set (equals the input when fired is false).
fired: boolTrue when the pipeline actually changed the working set. False ⇒ “no compression possible” — the caller must not claim savings.
messages_before: usize§messages_after: usize§tokens_before: usizechars/4 estimates over the message list (the pipeline’s currency).
tokens_after: usize§how: &'static strWhat the pipeline did, e.g. "prune + summary" (the LLM summarizer
ran) vs "prune + static marker" (no summarizer / it failed) vs
"structural prune" — [CompressAction::describe]’s wording, so the
manual notice and the loop’s notice can never drift apart.
notice: Option<String>One-time anti-thrash notice, when this run just latched the disable.
Trait Implementations§
Source§impl Clone for ManualCompressOutcome
impl Clone for ManualCompressOutcome
Source§fn clone(&self) -> ManualCompressOutcome
fn clone(&self) -> ManualCompressOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ManualCompressOutcome
impl RefUnwindSafe for ManualCompressOutcome
impl Send for ManualCompressOutcome
impl Sync for ManualCompressOutcome
impl Unpin for ManualCompressOutcome
impl UnsafeUnpin for ManualCompressOutcome
impl UnwindSafe for ManualCompressOutcome
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
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>
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