pub struct DiskBuilder {
pub cache_size_mb: usize,
pub max_stored_mb: usize,
}Expand description
Builder-style disk store setup
Fields§
§cache_size_mb: usizeDatabase in-memory cache allowance
Default: 32 MiB
max_stored_mb: usizeDatabase stored block size limit
Default: 10 GiB
Note: actual size on disk may be more, but should approximately scale with this limit
Implementations§
Source§impl DiskBuilder
impl DiskBuilder
Sourcepub fn with_cache_size_mb(self, size: usize) -> Self
pub fn with_cache_size_mb(self, size: usize) -> Self
Set the in-memory cache allowance for the database
Default: 32 MiB
Sourcepub fn with_max_stored_mb(self, max: usize) -> Self
pub fn with_max_stored_mb(self, max: usize) -> Self
Set the approximate stored block size limit
Default: 10 GiB
Trait Implementations§
Source§impl Clone for DiskBuilder
impl Clone for DiskBuilder
Source§fn clone(&self) -> DiskBuilder
fn clone(&self) -> DiskBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiskBuilder
impl Debug for DiskBuilder
Auto Trait Implementations§
impl Freeze for DiskBuilder
impl RefUnwindSafe for DiskBuilder
impl Send for DiskBuilder
impl Sync for DiskBuilder
impl Unpin for DiskBuilder
impl UnwindSafe for DiskBuilder
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