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
sourceimpl FlushOptions
impl FlushOptions
Trait Implementations
sourceimpl Default for FlushOptions
impl Default for FlushOptions
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more