pub enum CompactionReason {
Manual,
Threshold,
Overflow,
}Expand description
Why compaction was triggered.
Variants§
Manual
User manually triggered /compact.
Threshold
Context usage exceeded the configured threshold.
Overflow
Provider returned a context overflow error.
Trait Implementations§
Source§impl Clone for CompactionReason
impl Clone for CompactionReason
Source§fn clone(&self) -> CompactionReason
fn clone(&self) -> CompactionReason
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 CompactionReason
Source§impl Debug for CompactionReason
impl Debug for CompactionReason
Source§impl Display for CompactionReason
impl Display for CompactionReason
impl Eq for CompactionReason
Source§impl PartialEq for CompactionReason
impl PartialEq for CompactionReason
Source§fn eq(&self, other: &CompactionReason) -> bool
fn eq(&self, other: &CompactionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompactionReason
impl Serialize for CompactionReason
impl StructuralPartialEq for CompactionReason
Auto Trait Implementations§
impl Freeze for CompactionReason
impl RefUnwindSafe for CompactionReason
impl Send for CompactionReason
impl Sync for CompactionReason
impl Unpin for CompactionReason
impl UnsafeUnpin for CompactionReason
impl UnwindSafe for CompactionReason
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.