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

Trait Implementations

impl Clone for Options
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Options
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl !Send for Options

impl !Sync for Options