pub enum CompactionReason {
TranscriptTooLong,
Manual,
Custom(String),
}Expand description
The reason a compaction was triggered.
Returned by CompactionTrigger::should_compact and forwarded to
strategies so they can adapt their behaviour.
Variants§
TranscriptTooLong
The transcript exceeded a configured item count.
Manual
A caller explicitly requested compaction.
Custom(String)
An application-specific reason described by the inner string.
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 · 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 CompactionReason
impl Debug for CompactionReason
Source§impl<'de> Deserialize<'de> for CompactionReason
impl<'de> Deserialize<'de> for CompactionReason
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 CompactionReason
impl PartialEq for CompactionReason
Source§impl Serialize for CompactionReason
impl Serialize for CompactionReason
impl Eq 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