pub enum IndexCompaction {
NotNeeded,
Busy,
InsufficientSpace {
needed: u64,
free: u64,
},
Compacted {
before: u64,
after: u64,
},
}Expand description
Result of one compaction attempt. Only I/O failures are errors.
Variants§
NotNeeded
The freelist is below the thresholds.
Busy
Another connection holds the index. Nothing was lost; retry later.
InsufficientSpace
The volume cannot hold the rewritten copy. Free pages stay reusable.
Compacted
File size in bytes before and after.
Trait Implementations§
Source§impl Clone for IndexCompaction
impl Clone for IndexCompaction
impl Copy for IndexCompaction
Source§impl Debug for IndexCompaction
impl Debug for IndexCompaction
impl Eq for IndexCompaction
Source§impl PartialEq for IndexCompaction
impl PartialEq for IndexCompaction
impl StructuralPartialEq for IndexCompaction
Auto Trait Implementations§
impl Freeze for IndexCompaction
impl RefUnwindSafe for IndexCompaction
impl Send for IndexCompaction
impl Sync for IndexCompaction
impl Unpin for IndexCompaction
impl UnsafeUnpin for IndexCompaction
impl UnwindSafe for IndexCompaction
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