Struct rocksdb::WaitForCompactOptions
source · pub struct WaitForCompactOptions { /* private fields */ }
Implementations§
source§impl WaitForCompactOptions
impl WaitForCompactOptions
sourcepub fn set_abort_on_pause(&mut self, v: bool)
pub fn set_abort_on_pause(&mut self, v: bool)
If true, abort waiting if background jobs are paused. If false, ContinueBackgroundWork() must be called to resume the background jobs. Otherwise, jobs that were queued, but not scheduled yet may never finish and WaitForCompact() may wait indefinitely (if timeout is set, it will abort after the timeout).
Default: false
sourcepub fn set_flush(&mut self, v: bool)
pub fn set_flush(&mut self, v: bool)
If true, flush all column families before starting to wait.
Default: false
sourcepub fn set_timeout(&mut self, microseconds: u64)
pub fn set_timeout(&mut self, microseconds: u64)
Timeout in microseconds for waiting for compaction to complete. when timeout == 0, WaitForCompact() will wait as long as there’s background work to finish.
Default: 0
Trait Implementations§
source§impl Default for WaitForCompactOptions
impl Default for WaitForCompactOptions
Auto Trait Implementations§
impl Freeze for WaitForCompactOptions
impl RefUnwindSafe for WaitForCompactOptions
impl !Send for WaitForCompactOptions
impl !Sync for WaitForCompactOptions
impl Unpin for WaitForCompactOptions
impl UnwindSafe for WaitForCompactOptions
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