pub struct BackgroundCompaction { /* private fields */ }Expand description
Calls compact_journal_after every period on its own thread. Each pass that
compacts holds the commit lock while the journal is replaced, so commits wait
for it. The first failure ends the worker and stop returns it; a failed
replacement also fences the engine until reopen, as with a manual compaction.
Dropping the handle stops the worker and discards any failure.
Implementations§
Trait Implementations§
Source§impl Drop for BackgroundCompaction
impl Drop for BackgroundCompaction
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundCompaction
impl !UnwindSafe for BackgroundCompaction
impl Freeze for BackgroundCompaction
impl Send for BackgroundCompaction
impl Sync for BackgroundCompaction
impl Unpin for BackgroundCompaction
impl UnsafeUnpin for BackgroundCompaction
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