pub struct CompactionSettings {
pub enabled: bool,
pub reserve_tokens: u64,
pub keep_recent_tokens: u64,
}Expand description
When and how much to compact.
Fields§
§enabled: boolAutomatic compaction is on.
reserve_tokens: u64Tokens kept free for the response. Compaction starts when less is left.
keep_recent_tokens: u64Recent tokens kept verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for CompactionSettings
impl Clone for CompactionSettings
impl Copy for CompactionSettings
Source§impl Debug for CompactionSettings
impl Debug for CompactionSettings
impl Eq for CompactionSettings
Source§impl PartialEq for CompactionSettings
impl PartialEq for CompactionSettings
Source§impl Serialize for CompactionSettings
impl Serialize for CompactionSettings
impl StructuralPartialEq for CompactionSettings
Auto Trait Implementations§
impl Freeze for CompactionSettings
impl RefUnwindSafe for CompactionSettings
impl Send for CompactionSettings
impl Sync for CompactionSettings
impl Unpin for CompactionSettings
impl UnsafeUnpin for CompactionSettings
impl UnwindSafe for CompactionSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.