pub struct CompactionEngine { /* private fields */ }Implementations§
Source§impl CompactionEngine
impl CompactionEngine
pub fn new(store: Arc<dyn SessionStore>) -> Self
pub fn with_compressor(self, compressor: Box<dyn SegmentCompressor>) -> Self
pub fn with_rules(self, rules: CompactionRules) -> Self
pub fn should_compact(&self, head_path: &Path, max_entries: usize) -> bool
pub fn compact_segment( &self, head_path: &Path, session_dir: &Path, max_entries: usize, ) -> Result<CompactionResult, SessionError>
Auto Trait Implementations§
impl !RefUnwindSafe for CompactionEngine
impl !UnwindSafe for CompactionEngine
impl Freeze for CompactionEngine
impl Send for CompactionEngine
impl Sync for CompactionEngine
impl Unpin for CompactionEngine
impl UnsafeUnpin for CompactionEngine
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