pub enum ContextCompactionMode {
KeepRecentRawSuffix,
CompactToSafeFrontier,
}Expand description
Auto-compaction strategy used by [ContextPlugin].
Variants§
KeepRecentRawSuffix
Replace an older prefix with a summary while preserving a recent raw suffix.
CompactToSafeFrontier
Replace all messages through the latest safe frontier with a summary.
Trait Implementations§
Source§impl Clone for ContextCompactionMode
impl Clone for ContextCompactionMode
Source§fn clone(&self) -> ContextCompactionMode
fn clone(&self) -> ContextCompactionMode
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 moreSource§impl Debug for ContextCompactionMode
impl Debug for ContextCompactionMode
Source§impl Default for ContextCompactionMode
impl Default for ContextCompactionMode
Source§fn default() -> ContextCompactionMode
fn default() -> ContextCompactionMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextCompactionMode
impl<'de> Deserialize<'de> for ContextCompactionMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContextCompactionMode
impl PartialEq for ContextCompactionMode
Source§impl Serialize for ContextCompactionMode
impl Serialize for ContextCompactionMode
impl Copy for ContextCompactionMode
impl Eq for ContextCompactionMode
impl StructuralPartialEq for ContextCompactionMode
Auto Trait Implementations§
impl Freeze for ContextCompactionMode
impl RefUnwindSafe for ContextCompactionMode
impl Send for ContextCompactionMode
impl Sync for ContextCompactionMode
impl Unpin for ContextCompactionMode
impl UnwindSafe for ContextCompactionMode
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.