Struct rocksdb::FlushOptions
source · pub struct FlushOptions { /* private fields */ }
Expand description
Optionally wait for the memtable flush to be performed.
§Examples
Manually flushing the memtable:
use rocksdb::{DB, Options, FlushOptions};
let path = "_path_for_rocksdb_storageY2";
{
let db = DB::open_default(path).unwrap();
let mut flush_options = FlushOptions::default();
flush_options.set_wait(true);
db.flush_opt(&flush_options);
}
let _ = DB::destroy(&Options::default(), path);
Implementations§
source§impl FlushOptions
impl FlushOptions
Trait Implementations§
source§impl Default for FlushOptions
impl Default for FlushOptions
source§impl Drop for FlushOptions
impl Drop for FlushOptions
impl Send for FlushOptions
impl Sync for FlushOptions
Auto Trait Implementations§
impl Freeze for FlushOptions
impl RefUnwindSafe for FlushOptions
impl Unpin 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