Struct rusty_leveldb_arc::Options
source · pub struct Options {Show 17 fields
pub cmp: Arc<Box<dyn Cmp>>,
pub env: Arc<Box<dyn Env>>,
pub log: Option<Arc<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: Arc<RefCell<Cache<Block>>>,
pub block_size: usize,
pub block_restart_interval: usize,
pub compressor: u8,
pub compressor_list: Arc<CompressorList>,
pub reuse_logs: bool,
pub reuse_manifest: bool,
pub filter_policy: Arc<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: Arc<Box<dyn Cmp>>
§env: Arc<Box<dyn Env>>
§log: Option<Arc<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: Arc<RefCell<Cache<Block>>>
§block_size: usize
§block_restart_interval: usize
§compressor: u8
Compressor 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: Arc<CompressorList>
§reuse_logs: bool
§reuse_manifest: bool
§filter_policy: Arc<Box<dyn FilterPolicy>>
Trait Implementations§
Auto Trait Implementations§
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