Struct ckb_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 ckb_rocksdb::{DB, Options, FlushOptions, prelude::*};
let path = "_path_for_rocksdb_storageY";
{
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§fn default() -> FlushOptions
fn default() -> FlushOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FlushOptions
impl !Send for FlushOptions
impl !Sync 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