pub struct FlushOptions {
pub wait: bool,
}Expand description
Options that control Db::flush.
See include/rocksdb/db.h: FlushOptions.
Fields§
§wait: boolIf true, block until the background thread has written the memtable to an SSTable and
installed the new Version. The WAL segment covering the flushed data is deleted before
this call returns.
If false, the flush is scheduled and this call returns immediately. The data will appear
in an SSTable at some point in the near future (subject to background-thread scheduling).
Default: true.
Trait Implementations§
Source§impl Clone for FlushOptions
impl Clone for FlushOptions
Source§fn clone(&self) -> FlushOptions
fn clone(&self) -> FlushOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 FlushOptions
impl Debug for FlushOptions
Auto Trait Implementations§
impl Freeze for FlushOptions
impl RefUnwindSafe for FlushOptions
impl Send for FlushOptions
impl Sync for FlushOptions
impl Unpin for FlushOptions
impl UnsafeUnpin for FlushOptions
impl UnwindSafe for FlushOptions
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