pub struct Options {
pub capacity: u32,
pub b_commit: u32,
pub auto_b: bool,
pub staleness_budget_ms: u32,
pub n_keys: usize,
pub profile: Profile,
pub durability: Durability,
}Expand description
Tuning knobs for Db::open.
Clone so a caller can open the same configuration twice — reopening a
database after a drop is the normal way to test durability, and without
Clone every such call site has to rebuild the struct field by field.
Fields§
§capacity: u32§b_commit: u32§auto_b: bool§staleness_budget_ms: u32§n_keys: usize§profile: Profile§durability: DurabilityTrait 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 UnsafeUnpin 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