pub enum CompactionEvent {
Start {
reason: CompactionReason,
},
End {
reason: CompactionReason,
result: CompactionResult,
aborted: bool,
will_retry: bool,
error_message: Option<String>,
},
}Expand description
Events emitted during the compaction lifecycle.
Matches pi’s compaction_start / compaction_end event semantics.
Variants§
Start
Compaction has started with the given reason.
Fields
§
reason: CompactionReasonEnd
Compaction completed successfully.
Trait Implementations§
Source§impl Clone for CompactionEvent
impl Clone for CompactionEvent
Source§fn clone(&self) -> CompactionEvent
fn clone(&self) -> CompactionEvent
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 moreAuto Trait Implementations§
impl Freeze for CompactionEvent
impl RefUnwindSafe for CompactionEvent
impl Send for CompactionEvent
impl Sync for CompactionEvent
impl Unpin for CompactionEvent
impl UnsafeUnpin for CompactionEvent
impl UnwindSafe for CompactionEvent
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