Mercurial > lbo > hg > leveldb-rs
changeset 368:1dc6ed532dae
options: Remove unused option types.
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sun, 08 Oct 2017 13:07:14 +0200 |
parents | 821c6108558f |
children | ccc31e0b4c50 |
files | src/options.rs |
diffstat | 1 files changed, 0 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/src/options.rs Sun Oct 08 12:28:12 2017 +0200 +++ b/src/options.rs Sun Oct 08 13:07:14 2017 +0200 @@ -103,32 +103,3 @@ self.env = Rc::new(e); } } - -/// Supplied to DB read operations. -/// Deprecated: Will soon be removed to reduce complexity. -pub struct ReadOptions { - pub verify_checksums: bool, - pub fill_cache: bool, - pub snapshot: Option<SequenceNumber>, -} - -impl Default for ReadOptions { - fn default() -> Self { - ReadOptions { - verify_checksums: true, - fill_cache: true, - snapshot: None, - } - } -} - -/// Supplied to write operations -pub struct WriteOptions { - pub sync: bool, -} - -impl Default for WriteOptions { - fn default() -> Self { - WriteOptions { sync: false } - } -}