pub struct Compaction {
pub replaced: Vec<u64>,
pub written: u64,
}Expand description
One compaction: the runs it replaced and the run it wrote, each a logged manifest. The replaced runs remain in the log; a reader at an older checkpoint still proves through them.
Fields§
§replaced: Vec<u64>Manifest indices of the runs merged.
written: u64Manifest index of the run written.
Trait Implementations§
Source§impl Clone for Compaction
impl Clone for Compaction
Source§fn clone(&self) -> Compaction
fn clone(&self) -> Compaction
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 moreSource§impl Debug for Compaction
impl Debug for Compaction
Source§impl PartialEq for Compaction
impl PartialEq for Compaction
Source§fn eq(&self, other: &Compaction) -> bool
fn eq(&self, other: &Compaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Compaction
impl StructuralPartialEq for Compaction
Auto Trait Implementations§
impl Freeze for Compaction
impl RefUnwindSafe for Compaction
impl Send for Compaction
impl Sync for Compaction
impl Unpin for Compaction
impl UnsafeUnpin for Compaction
impl UnwindSafe for Compaction
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