pub struct PreCompactContext {
pub message_count: usize,
pub token_count: u64,
}Expand description
Context passed to pre-compact hooks.
Fields§
§message_count: usizeMessage count before compaction.
token_count: u64Token count estimate.
Trait Implementations§
Source§impl Clone for PreCompactContext
impl Clone for PreCompactContext
Source§fn clone(&self) -> PreCompactContext
fn clone(&self) -> PreCompactContext
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 PreCompactContext
impl RefUnwindSafe for PreCompactContext
impl Send for PreCompactContext
impl Sync for PreCompactContext
impl Unpin for PreCompactContext
impl UnsafeUnpin for PreCompactContext
impl UnwindSafe for PreCompactContext
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