pub struct Options {Show 17 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_capacity_bytes: usize,
pub block_size: usize,
pub block_restart_interval: usize,
pub compressor: u8,
pub compressor_list: Rc<CompressorList>,
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: bool§error_if_exists: bool§paranoid_checks: bool§write_buffer_size: usize§max_open_files: usize§max_file_size: usize§block_cache_capacity_bytes: usize§block_size: usize§block_restart_interval: usize§compressor: u8Compressor id in compressor list
Note: you have to open a database with the same compression type as it was written to, in order to not lose data! (this is a bug and will be fixed)
compressor_list: Rc<CompressorList>§reuse_logs: bool§reuse_manifest: bool§filter_policy: Rc<Box<dyn FilterPolicy>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl !RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more