From c7e08cfd4b7c30b84e1bfeba4500f4f136823308 Mon Sep 17 00:00:00 2001 From: Valerian Saliou Date: Tue, 23 Apr 2019 09:05:35 +0200 Subject: [PATCH] Add docs --- src/db_options.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/db_options.rs b/src/db_options.rs index a32fc16..5d776c1 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -1221,6 +1221,18 @@ impl FlushOptions { FlushOptions::default() } + /// Waits until the flush is done. + /// + /// Default: true + /// + /// # Example + /// + /// ``` + /// use rocksdb::FlushOptions; + /// + /// let mut options = FlushOptions::default(); + /// options.set_wait(false); + /// ``` pub fn set_wait(&mut self, wait: bool) { unsafe { ffi::rocksdb_flushoptions_set_wait(self.inner, wait as c_uchar);