pub enum CompactionStatus {
Applied {
layers_applied: Vec<&'static str>,
tokens_before: u32,
tokens_after: u32,
},
Skipped {
reason: &'static str,
tokens_current: u32,
},
Failed {
error: String,
},
}Expand description
Outcome of a compaction attempt, reported without exposing hidden tool output.
Status fields contain only counts and token estimates — never raw message content or tool result text. This is the hidden-output guard (MEM-005-A).
Variants§
Applied
Compaction was applied successfully.
Fields
Skipped
Compaction was skipped (context already fits or below threshold).
Fields
Failed
Compaction failed.
Trait Implementations§
Source§impl Clone for CompactionStatus
impl Clone for CompactionStatus
Source§fn clone(&self) -> CompactionStatus
fn clone(&self) -> CompactionStatus
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 CompactionStatus
impl Debug for CompactionStatus
Source§impl PartialEq for CompactionStatus
impl PartialEq for CompactionStatus
impl StructuralPartialEq for CompactionStatus
Auto Trait Implementations§
impl Freeze for CompactionStatus
impl RefUnwindSafe for CompactionStatus
impl Send for CompactionStatus
impl Sync for CompactionStatus
impl Unpin for CompactionStatus
impl UnsafeUnpin for CompactionStatus
impl UnwindSafe for CompactionStatus
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