Struct rusty_leveldb::Options
source · [−]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: 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<dyn FilterPolicy>>
Implementations
sourceimpl Options
impl Options
pub fn new_disk_db_with(key: [u8; 16]) -> Options
pub fn new_mem_db() -> Options
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more