pub struct PostCompactContext {
pub message_count: usize,
pub token_count: u64,
}Expand description
Context passed to post-compact hooks.
Fields§
§message_count: usizeMessage count after compaction.
token_count: u64Token count estimate after compaction.
Trait Implementations§
Source§impl Clone for PostCompactContext
impl Clone for PostCompactContext
Source§fn clone(&self) -> PostCompactContext
fn clone(&self) -> PostCompactContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PostCompactContext
impl RefUnwindSafe for PostCompactContext
impl Send for PostCompactContext
impl Sync for PostCompactContext
impl Unpin for PostCompactContext
impl UnsafeUnpin for PostCompactContext
impl UnwindSafe for PostCompactContext
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