Struct rocksdb::FlushOptions [−][src]
pub struct FlushOptions { /* fields omitted */ }
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
impl FlushOptions
[src]
impl FlushOptions
[src]Trait Implementations
impl Default for FlushOptions
[src]
impl Default for FlushOptions
[src]fn default() -> FlushOptions
[src]
impl Drop for FlushOptions
[src]
impl Drop for FlushOptions
[src]