pub struct CompactionReport {
pub tokens_before: u64,
pub tokens_after: u64,
}Expand description
Compaction report. The token counts before and after compaction are wrapped into
AgentEvent::ContextCompressed by the main loop.
Fields§
§tokens_before: u64§tokens_after: u64Trait Implementations§
Source§impl Clone for CompactionReport
impl Clone for CompactionReport
Source§fn clone(&self) -> CompactionReport
fn clone(&self) -> CompactionReport
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 CompactionReport
Auto Trait Implementations§
impl Freeze for CompactionReport
impl RefUnwindSafe for CompactionReport
impl Send for CompactionReport
impl Sync for CompactionReport
impl Unpin for CompactionReport
impl UnsafeUnpin for CompactionReport
impl UnwindSafe for CompactionReport
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