pub struct Options {
Show 16 fields pub cmp: Rc<Box<dyn Cmp>>, pub env: Rc<Box<dyn 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<dyn FilterPolicy>>,
}
Expand description

Options contains general parameters for a LevelDB instance. Most of the names are self-explanatory; the defaults are defined in the Default implementation.

Fields

cmp: Rc<Box<dyn Cmp>>env: Rc<Box<dyn Env>>log: Option<Rc<RefCell<Logger>>>create_if_missing: boolerror_if_exists: boolparanoid_checks: boolwrite_buffer_size: usizemax_open_files: usizemax_file_size: usizeblock_cache: Rc<RefCell<Cache<Block>>>block_size: usizeblock_restart_interval: usizecompression_type: CompressionTypereuse_logs: boolreuse_manifest: boolfilter_policy: Rc<Box<dyn FilterPolicy>>

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.