pub struct DbConfig {
pub name: String,
pub dir: PathBuf,
pub compaction_ratio: f64,
pub write_order: WriteOrder,
}Fields§
§name: String§dir: PathBuf§compaction_ratio: f64Trigger compaction when file_size >= live_data_size * ratio. Default: 2.0 — compact when file is 2× larger than live data.
write_order: WriteOrderImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbConfig
impl RefUnwindSafe for DbConfig
impl Send for DbConfig
impl Sync for DbConfig
impl Unpin for DbConfig
impl UnsafeUnpin for DbConfig
impl UnwindSafe for DbConfig
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