pub enum CompactionTier {
Soft,
Hard,
}Expand description
Which compaction threshold fired for a SessionEvent::Compaction event.
Mirrors zeph_context::manager::CompactionTier (soft 70% / hard 90% budget thresholds) but is
redefined here rather than imported: zeph-context is a context-assembly crate the session
event schema should not need to pull in just for this one enum, and the two enums are kept in
sync manually since compaction tiers change rarely.
Variants§
Soft
Soft threshold (~70% of budget): a light prune.
Hard
Hard threshold (~90% of budget): an aggressive prune.
Trait Implementations§
Source§impl Clone for CompactionTier
impl Clone for CompactionTier
Source§fn clone(&self) -> CompactionTier
fn clone(&self) -> CompactionTier
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 CompactionTier
Source§impl Debug for CompactionTier
impl Debug for CompactionTier
Source§impl<'de> Deserialize<'de> for CompactionTier
impl<'de> Deserialize<'de> for CompactionTier
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
impl Eq for CompactionTier
Source§impl PartialEq for CompactionTier
impl PartialEq for CompactionTier
Source§impl Serialize for CompactionTier
impl Serialize for CompactionTier
impl StructuralPartialEq for CompactionTier
Auto Trait Implementations§
impl Freeze for CompactionTier
impl RefUnwindSafe for CompactionTier
impl Send for CompactionTier
impl Sync for CompactionTier
impl Unpin for CompactionTier
impl UnsafeUnpin for CompactionTier
impl UnwindSafe for CompactionTier
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more