changeset 28:94a35a4649b3

Add Options type
author Lewin Bormann <lbo@spheniscida.de>
date Sun, 12 Jun 2016 13:03:45 +0200
parents e0331fa88bfb
children 666ff7459169
files src/types.rs
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/types.rs	Sun Jun 12 12:11:54 2016 +0200
+++ b/src/types.rs	Sun Jun 12 13:03:45 2016 +0200
@@ -34,6 +34,23 @@
     }
 }
 
+/// [not all member types implemented yet]
+///
+pub struct Options<C: Comparator> {
+    pub cmp: C,
+    pub create_if_missing: bool,
+    pub error_if_exists: bool,
+    pub paranoid_checks: bool,
+    // pub logger: Logger,
+    pub write_buffer_size: usize,
+    pub max_open_files: usize,
+    // pub block_cache: Cache,
+    pub block_size: usize,
+    pub block_restart_interval: usize,
+    // pub compression_type: CompressionType,
+    pub reuse_logs: bool, // pub filter_policy: FilterPolicy,
+}
+
 
 /// An extension of the standard `Iterator` trait that supports some methods necessary for LevelDB.
 /// This works because the iterators used are stateful and keep the last returned element.