#[non_exhaustive]pub enum CompactionTrigger {
Manual,
Auto,
Unknown(String),
}Expand description
What initiated a compaction. Open.
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.
Manual
The session/compact command.
Auto
Automatic pressure-triggered compaction.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for CompactionTrigger
impl Clone for CompactionTrigger
Source§impl Debug for CompactionTrigger
impl Debug for CompactionTrigger
Source§impl<'de> Deserialize<'de> for CompactionTrigger
impl<'de> Deserialize<'de> for CompactionTrigger
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompactionTrigger
Source§impl PartialEq for CompactionTrigger
impl PartialEq for CompactionTrigger
Source§impl Serialize for CompactionTrigger
impl Serialize 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