pub struct DBBuilder<P: AsRef<Path>> {
pub free_batch_size: Option<usize>,
/* private fields */
}
Expand description
Builder of a DB
.
Fields§
§free_batch_size: Option<usize>
Implementations§
Source§impl<P: AsRef<Path>> DBBuilder<P>
impl<P: AsRef<Path>> DBBuilder<P>
Sourcepub fn free_batch_size(self, val: usize) -> Self
pub fn free_batch_size(self, val: usize) -> Self
Sets the number of free pages before reclamation can be attempted. The default is 32, though this can change in the future.
Sourcepub fn min_file_growth_size(self, val: usize) -> Self
pub fn min_file_growth_size(self, val: usize) -> Self
Sets the minimum file growth size. The default is 64MB in release, though this can change in the future.
Auto Trait Implementations§
impl<P> Freeze for DBBuilder<P>where
P: Freeze,
impl<P> RefUnwindSafe for DBBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for DBBuilder<P>where
P: Send,
impl<P> Sync for DBBuilder<P>where
P: Sync,
impl<P> Unpin for DBBuilder<P>where
P: Unpin,
impl<P> UnwindSafe for DBBuilder<P>where
P: UnwindSafe,
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