Struct rusty_leveldb::Options
[−]
[src]
pub struct Options { pub cmp: Rc<Box<Cmp>>, pub env: Rc<Box<Env>>, pub log: Option<Rc<RefCell<Logger>>>, pub create_if_missing: bool, pub error_if_exists: bool, pub paranoid_checks: bool, pub write_buffer_size: usize, pub max_open_files: usize, pub max_file_size: usize, pub block_cache: Rc<RefCell<Cache<Block>>>, pub block_size: usize, pub block_restart_interval: usize, pub compression_type: CompressionType, pub reuse_logs: bool, pub reuse_manifest: bool, pub filter_policy: Rc<Box<FilterPolicy>>, }
Options contains general parameters for a LevelDB instance. Most of the names are
self-explanatory; the defaults are defined in the Default
implementation.
Note: Compression is not yet implemented.
Fields
cmp: Rc<Box<Cmp>>
env: Rc<Box<Env>>
log: Option<Rc<RefCell<Logger>>>
create_if_missing: bool
error_if_exists: bool
paranoid_checks: bool
write_buffer_size: usize
max_open_files: usize
max_file_size: usize
block_cache: Rc<RefCell<Cache<Block>>>
block_size: usize
block_restart_interval: usize
compression_type: CompressionType
reuse_logs: bool
reuse_manifest: bool
filter_policy: Rc<Box<FilterPolicy>>
Trait Implementations
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more