pub struct LeveledCompactionController { /* private fields */ }Implementations§
Source§impl LeveledCompactionController
impl LeveledCompactionController
pub fn new(options: LeveledCompactionOptions) -> Self
pub fn generate_compaction_task( &self, snapshot: &LsmStorageState, ) -> Option<LeveledCompactionTask>
pub fn apply_compaction_result( &self, snapshot: &LsmStorageState, task: &LeveledCompactionTask, output: &[usize], ) -> (LsmStorageState, Vec<usize>)
Auto Trait Implementations§
impl Freeze for LeveledCompactionController
impl RefUnwindSafe for LeveledCompactionController
impl Send for LeveledCompactionController
impl Sync for LeveledCompactionController
impl Unpin for LeveledCompactionController
impl UnwindSafe for LeveledCompactionController
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