#[non_exhaustive]pub enum CompactionTrigger {
Requested,
WindowFilling,
PausePoint,
Idle,
ColdCache,
}Expand description
Why a compaction started.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Requested
Agent::compact was called.
WindowFilling
The window crossed the policy’s start point; the compaction is forked alongside the run.
PausePoint
The window reached the pause point and the run made room.
Idle
Agent::compact_when_idle ran
shortly before the cache expired.
ColdCache
A send found the cache cold and a compaction model set.
Trait Implementations§
Source§impl Clone for CompactionTrigger
impl Clone for CompactionTrigger
impl Copy for CompactionTrigger
Source§impl Debug for CompactionTrigger
impl Debug for CompactionTrigger
impl Eq for CompactionTrigger
Source§impl PartialEq for CompactionTrigger
impl PartialEq for CompactionTrigger
impl StructuralPartialEq for CompactionTrigger
Auto Trait Implementations§
impl Forget for CompactionTrigger
impl Freeze for CompactionTrigger
impl Move for CompactionTrigger
impl RefUnwindSafe for CompactionTrigger
impl Send for CompactionTrigger
impl Sync for CompactionTrigger
impl Unpin for CompactionTrigger
impl UnsafeUnpin for CompactionTrigger
impl UnwindSafe for CompactionTrigger
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.